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 +4 -4
- data/lib/justimmo_client/api/v1/representers/json/employee_representer.rb +8 -0
- data/lib/justimmo_client/api/v1/representers/json/realty_representer.rb +3 -9
- data/lib/justimmo_client/api/v1/representers/xml/realty_representer.rb +7 -1
- data/lib/justimmo_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fe96e57d5c60c59c9db134f6c43d92e3e4b2596
|
4
|
+
data.tar.gz: 870074cdb471abed42babde9e7a3c61199712ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
82
|
-
|
83
|
-
|
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,
|