realogy 0.6.4 → 0.6.5

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
  SHA256:
3
- metadata.gz: 8bd21ebae2bdd067d907b8be8b4205f91874e8074f83189bcb719d793e251672
4
- data.tar.gz: a9afc5328a86797ec677fd28aaaf1d1932bc29cf65a84e906b956c9d7ac76897
3
+ metadata.gz: a80f7fefc94aa78eeb2a8fcfc83807471d1b0b289dc3d8e6a42c1816f04aa0a0
4
+ data.tar.gz: fba2b29565b785c2bfd72e3365e87a5268e60026bedb583edd5669272f791de3
5
5
  SHA512:
6
- metadata.gz: fb23e4584877fb4a473f05ee86d68a7a325adde0a7941a43f643d18b94238522673188f0d2adb8f80b332b2eb02614d97503c0404d9239072ec4247eff9b90de
7
- data.tar.gz: 79329f73bdcc2f6467b46246e105bad993ee24bc335d3bd64e0fdd2001cc8cedb309a2949ef26be20ad7badd6b024ff1c22f5f25c8136ff09f7695ca1c39bc7b
6
+ metadata.gz: b60f7e64694ccb74122bb9d1dc37cc9c7aafb2cd0cb967a708d884897709e92b80b1a605d8473904b081f4440c1f722043084960e375b797c74adedfbbc5fe30
7
+ data.tar.gz: 5a910405bee433c9330053d2487ccc92053aea27d3f746ffd638068bf2a2acb5ed5281855e56ed1267ce81306cac9dc5cd4ad0c68afa9a10d25860071cd6e802
data/README.md CHANGED
@@ -219,26 +219,26 @@ When passing in `followNext: true`, the returned result will be an array of enti
219
219
  To retrieve all listings, `fromDate` and `brandCode` are mandatory parameters. A minimum call to retrieve all listing entities could look like this:
220
220
 
221
221
  ```ruby
222
- realogy.get_all_listings(brandCode: "COR", fromDate: 1.week.ago.to_query_string)
222
+ realogy.get_all_listings(brandCode: "COR", fromDate: 1.week.ago.json_string)
223
223
  ```
224
224
 
225
225
  These are additional filters that can be applied:
226
226
 
227
227
  ```ruby
228
- # fromDate and toDate must be converted to supported text format. This is done with to_query_string:
229
- realogy.get_all_listings(brandCode: "COR", fromDate: 1.week.ago.to_query_string, toDate: DateTime.now.to_query_string)
228
+ # fromDate and toDate must be converted to supported text format. This is done with json_string:
229
+ realogy.get_all_listings(brandCode: "COR", fromDate: 1.week.ago.json_string, toDate: DateTime.now.json_string)
230
230
 
231
231
  # Allowed type values: ForSale, ForRent, ForSaleCommercial, & ForLeaseCommercial
232
- realogy.get_all_listings(brandCode: "C21", fromDate: 1.week.ago.to_query_string, type: "ForSale")
232
+ realogy.get_all_listings(brandCode: "C21", fromDate: 1.week.ago.json_string, type: "ForSale")
233
233
 
234
234
  # Allowed status values: Active, Available, Pending, & Closed
235
- realogy.get_all_listings(brandCode: "CB", fromDate: 1.week.ago.to_query_string, status: "Active")
235
+ realogy.get_all_listings(brandCode: "CB", fromDate: 1.week.ago.json_string, status: "Active")
236
236
 
237
237
  # Limit results to a particular country
238
- realogy.get_all_listings(brandCode: "SIR", fromDate: 1.week.ago.to_query_string, countryCode: "IT")
238
+ realogy.get_all_listings(brandCode: "SIR", fromDate: 1.week.ago.json_string, countryCode: "IT")
239
239
 
240
240
  # Limit number of listings per result batch. Allowed span: 10–1000.
241
- realogy.get_all_listings(brandCode: "BHG", fromDate: 1.week.ago.to_query_string, limit: 10)
241
+ realogy.get_all_listings(brandCode: "BHG", fromDate: 1.week.ago.json_string, limit: 10)
242
242
 
243
243
  ```
244
244
 
@@ -1,11 +1,11 @@
1
1
  DateTime.class_eval do
2
- def to_query_string
2
+ def json_string
3
3
  self.to_json.split("\"").last
4
4
  end
5
5
  end
6
6
 
7
7
  ActiveSupport::TimeWithZone.class_eval do
8
- def to_query_string
8
+ def json_string
9
9
  self.to_datetime.to_json.split("\"").last
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Realogy
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund