moxiworks_platform 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/moxiworks_platform/listing.rb +25 -0
- data/lib/moxiworks_platform/resource.rb +6 -1
- data/lib/moxiworks_platform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b10d1da9bac4b04edc1bcd921674fa77ffc9978
|
4
|
+
data.tar.gz: 54b8703241bc562e2cc5f63a82a47e88cca3e506
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 909c0fd47b12c9565804e049a525d6323c373c050f8c47c17af725b79c00b4c54d863356eabcbe09a6ca41121da8895f788d3493e1ae746515d161d9153898aa
|
7
|
+
data.tar.gz: 33867523f9551a2bdd2db4edca0357bb60759a38cb6b0d15fcc88a3b878ccf9216562bf847cb882b5bc87fd3ecbe03fd44f490dd26718f466702bf4f57a11f8c
|
data/.gitignore
CHANGED
@@ -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)
|
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.
|
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-
|
11
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|