justimmo_client 0.6.7 → 0.6.8

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: 6fe96e57d5c60c59c9db134f6c43d92e3e4b2596
4
- data.tar.gz: 870074cdb471abed42babde9e7a3c61199712ff0
3
+ metadata.gz: '084bca84fab7787d4ac96b9031ee4c6fd23cbbdb'
4
+ data.tar.gz: d035d7659a897e76fc4babcc80279e4c274bba2e
5
5
  SHA512:
6
- metadata.gz: 2fc2011c942305596e081a8054535fd1d12b3024392338121fa910560fc84a491dd6ae579e0d8493cac40b35d41aa809064f7d96c26afc6aaaf7413184530178
7
- data.tar.gz: 68a271df0a638ddf8832089e17d66bfe8e3685c7fb922098d0b61f0b0d8a33472896b4beb928c9619b8f7089e138347d1936ed5ea4f0044b2bd753e04fd3ecd0
6
+ metadata.gz: 739e21cee8d7630d638a55dd7bacddc85f37c44cb83827ff51b0c7fdebadce28ab087cfaf2028a9bb0e1a49d71af06d872918141e9b8435183cd576a987c0238
7
+ data.tar.gz: be8b3e5adcc8f8448b12f97659be56cc0740fec96eda1e3b6d046f56d88568e5821725593015296469e796ec25441dd0dabb4beb6130c92ebffa84c55331ee3e
@@ -71,6 +71,7 @@ test:rubocop:
71
71
  - bundle exec rubocop
72
72
  except:
73
73
  - master
74
+ - tags
74
75
  tags:
75
76
  - ruby
76
77
 
@@ -19,12 +19,7 @@ module JustimmoClient::V1
19
19
  property :website
20
20
 
21
21
  property :email_feedback
22
- property :email
23
- property :last_name
24
22
  property :company
25
- property :salutation
26
- property :phone
27
- property :mobile
28
23
 
29
24
  collection :attachments,
30
25
  decorator: AttachmentRepresenter,
@@ -108,26 +108,31 @@ module JustimmoClient::V1
108
108
  end
109
109
  end
110
110
 
111
+ class ContactRepresenter < EmployeeRepresenter
112
+ property :email_feedback
113
+ property :email, as: :email_direkt
114
+ property :last_name, as: :name
115
+ property :company, as: :firma
116
+ property :salutation, as: :anrede
117
+ property :phone, as: :tel_zentrale
118
+ property :mobile, as: :tel_handy
119
+
120
+ nested :bild do
121
+ property :big, setter: ->(fragment:, represented:, **) do
122
+ represented.attachments << Attachment.new(url: fragment)
123
+ end
124
+ end
125
+ end
126
+
111
127
  class RealtyRepresenter < RealtyListRepresenter
112
128
  property :geo,
113
129
  decorator: GeoLocationRepresenter,
114
130
  class: GeoLocation
115
131
 
116
- property :contact, as: :kontaktperson, decorator: EmployeeRepresenter, class: Employee do
117
- property :email_feedback
118
- property :email, as: :email_direkt
119
- property :last_name, as: :name
120
- property :company, as: :firma
121
- property :salutation, as: :anrede
122
- property :phone, as: :tel_zentrale
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
130
- end
132
+ property :contact,
133
+ as: :kontaktperson,
134
+ decorator: ContactRepresenter,
135
+ class: Employee
131
136
 
132
137
  property :price,
133
138
  as: :preise,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JustimmoClient
4
- VERSION = "0.6.7"
4
+ VERSION = "0.6.8"
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.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Auernig