justimmo_client 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4af966499684afea9e28c2dacb01816d618c4fe3
4
- data.tar.gz: 77b692e3404c61651985609698a80ab77867fa17
3
+ metadata.gz: 6fe96e57d5c60c59c9db134f6c43d92e3e4b2596
4
+ data.tar.gz: 870074cdb471abed42babde9e7a3c61199712ff0
5
5
  SHA512:
6
- metadata.gz: 43f05f744a4496eb025f13e65f1993052c3c7e8e5cebc9fe7dfbaa6ec5497ec6e4bd34a0dca35aeb7dd73d357ce5c518e641998467968128c55966e9c211e21c
7
- data.tar.gz: '0385a7d9afde08ada26e6f1aa8576765fecd46f19b903eef3e0ab09f2a84bcca15c2b15a170e685b391c4ca08430ca30c7a8d175f9c146380882fabdacaa6bcd'
6
+ metadata.gz: 2fc2011c942305596e081a8054535fd1d12b3024392338121fa910560fc84a491dd6ae579e0d8493cac40b35d41aa809064f7d96c26afc6aaaf7413184530178
7
+ data.tar.gz: 68a271df0a638ddf8832089e17d66bfe8e3685c7fb922098d0b61f0b0d8a33472896b4beb928c9619b8f7089e138347d1936ed5ea4f0044b2bd753e04fd3ecd0
@@ -18,6 +18,14 @@ module JustimmoClient::V1
18
18
  property :location
19
19
  property :website
20
20
 
21
+ property :email_feedback
22
+ property :email
23
+ property :last_name
24
+ property :company
25
+ property :salutation
26
+ property :phone
27
+ property :mobile
28
+
21
29
  collection :attachments,
22
30
  decorator: AttachmentRepresenter,
23
31
  class: Attachment
@@ -78,15 +78,9 @@ module JustimmoClient::V1
78
78
  property :total
79
79
  end
80
80
 
81
- property :contact, decorator: EmployeeRepresenter, class: Employee do
82
- property :email_feedback
83
- property :email
84
- property :last_name
85
- property :company
86
- property :salutation
87
- property :phone
88
- property :mobile
89
- end
81
+ property :contact,
82
+ decorator: EmployeeRepresenter,
83
+ class: Employee
90
84
 
91
85
  property :price, class: RealtyPrice do
92
86
  property :purcase
@@ -113,7 +113,7 @@ module JustimmoClient::V1
113
113
  decorator: GeoLocationRepresenter,
114
114
  class: GeoLocation
115
115
 
116
- property :contact, as: :kontaktperson, class: Employee do
116
+ property :contact, as: :kontaktperson, decorator: EmployeeRepresenter, class: Employee do
117
117
  property :email_feedback
118
118
  property :email, as: :email_direkt
119
119
  property :last_name, as: :name
@@ -121,6 +121,12 @@ module JustimmoClient::V1
121
121
  property :salutation, as: :anrede
122
122
  property :phone, as: :tel_zentrale
123
123
  property :mobile, as: :tel_handy
124
+
125
+ nested :bild do
126
+ property :big, setter: ->(fragment:, represented:, **) do
127
+ represented.attachments << Attachment.new(url: fragment)
128
+ end
129
+ end
124
130
  end
125
131
 
126
132
  property :price,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JustimmoClient
4
- VERSION = "0.6.6"
4
+ VERSION = "0.6.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: justimmo_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Auernig