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 +4 -4
- data/README.md +7 -7
- data/lib/realogy/app/models/date_time.rb +2 -2
- data/lib/realogy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a80f7fefc94aa78eeb2a8fcfc83807471d1b0b289dc3d8e6a42c1816f04aa0a0
|
4
|
+
data.tar.gz: fba2b29565b785c2bfd72e3365e87a5268e60026bedb583edd5669272f791de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
229
|
-
realogy.get_all_listings(brandCode: "COR", fromDate: 1.week.ago.
|
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.
|
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.
|
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.
|
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.
|
241
|
+
realogy.get_all_listings(brandCode: "BHG", fromDate: 1.week.ago.json_string, limit: 10)
|
242
242
|
|
243
243
|
```
|
244
244
|
|
data/lib/realogy/version.rb
CHANGED