moxiworks_platform 0.13.2 → 0.13.3

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: 72371394c5340b10ea0ae12863fbed16fc7b1c32
4
- data.tar.gz: 222797a54f1cb4759f72d558ed22abe2ae929a86
3
+ metadata.gz: 6b10d1da9bac4b04edc1bcd921674fa77ffc9978
4
+ data.tar.gz: 54b8703241bc562e2cc5f63a82a47e88cca3e506
5
5
  SHA512:
6
- metadata.gz: 04de67bc8baadccad24b017869fa2e199eecdd0ded5dd5973031279b95d7b0eb19e4e8dfc4ff5fc16524df9da5f651bad5126d755a7c85adc9722a45e5249302
7
- data.tar.gz: fbe0f1c9fbb80837197f406390bb4729799892239b889dc4a50a3307961bbd1a76c60e7a39c5700ab61317b67a39c43f8f514ce461669088d081e8b4db482ee9
6
+ metadata.gz: 909c0fd47b12c9565804e049a525d6323c373c050f8c47c17af725b79c00b4c54d863356eabcbe09a6ca41121da8895f788d3493e1ae746515d161d9153898aa
7
+ data.tar.gz: 33867523f9551a2bdd2db4edca0357bb60759a38cb6b0d15fcc88a3b878ccf9216562bf847cb882b5bc87fd3ecbe03fd44f490dd26718f466702bf4f57a11f8c
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /old/
@@ -285,6 +285,31 @@ module MoxiworksPlatform
285
285
  # @return [Integer] year the building was built
286
286
  attr_accessor :year_built
287
287
 
288
+ # @!attribute virtual_tour_url
289
+ #
290
+ # @return [String] Virtual tour URL for this listing.
291
+ attr_accessor :virtual_tour_url
292
+
293
+ # @!attribute open_house
294
+ #
295
+ # @return [Array] open house Hashes associated with the listing in the format
296
+ # {
297
+ # "date" => "(string) YYYY-MM-DD formatted string representing the date of the open house"
298
+ # "start_time" => "(string) HH:MM:SS formatted string representing the time when the open house starts. This is expressed in the local time where the listing is located."
299
+ # "end_time" => "(string) HH:MM:SS formatted string representing the time when the open house ends. This is expressed in the local time where the listing is located."
300
+ # }
301
+ attr_accessor :open_house
302
+
303
+ # @!attribute secondary_list_agent_uuid
304
+ #
305
+ # @return [String] If there is a second listing agent, the unique identifier for the second listing agent. This will correspond to the uuid field of an Agent.
306
+ attr_accessor :secondary_list_agent_uuid
307
+
308
+ # @!attribute secondary_list_agent_full_name
309
+ #
310
+ # @return [String] If there is a second listing agent, the name of the second listing agent.
311
+ attr_accessor :secondary_list_agent_full_name
312
+
288
313
 
289
314
 
290
315
  # Find a listing on the Moxi Works Platform
@@ -36,7 +36,8 @@ module MoxiworksPlatform
36
36
  Authorization: auth_header,
37
37
  Accept: accept_header,
38
38
  'Content-Type' => content_type_header,
39
- Cookie: Session.instance.cookie
39
+ Cookie: Session.instance.cookie,
40
+ 'X-Moxi-Library-User-Agent' => user_agent_header
40
41
  }
41
42
  end
42
43
 
@@ -66,6 +67,10 @@ module MoxiworksPlatform
66
67
  'application/x-www-form-urlencoded'
67
68
  end
68
69
 
70
+ def self.user_agent_header
71
+ 'moxiworks_platform ruby client'
72
+ end
73
+
69
74
  def self.check_for_error_in_response(response)
70
75
  begin
71
76
  json = JSON.parse(response)
@@ -1,3 +1,3 @@
1
1
  module MoxiworksPlatform
2
- VERSION = '0.13.2'
2
+ VERSION = '0.13.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moxiworks_platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tres Wong-Godfrey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-22 00:00:00.000000000 Z
11
+ date: 2018-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client