reso_api 1.8.4 → 1.8.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/lib/reso_api/app/models/reso/api/client.rb +3 -2
- data/lib/reso_api/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: a80f6b9174a1efece4648a3f95fd2bf1b8c9479ec9bb39d1ec8690180ef8ea4e
|
4
|
+
data.tar.gz: 67759fa70652278e8a905f40e69cc546f356d73ec2e24db2ef8c9034a7eeb699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 874101c3e8871647ba4937ce922053771e7b692a8fe6f647a0f8ba01a9809d0d74c7fe9f278e1c681bd7717844f1ec774c6f935ceade6961ced1ff4983b441f9
|
7
|
+
data.tar.gz: 22d0469a5f32f024f5b86a3c8cd856744b6010bda5fa11e92e33d8bf53de49d3e2c82413e6a01c4947fa1349b3f039f34d71317735d2eb4c9528cbcca5146b47
|
@@ -55,9 +55,11 @@ module RESO
|
|
55
55
|
|
56
56
|
FILTERABLE_ENDPOINTS.keys.each do |method_name|
|
57
57
|
define_method method_name do |*args, &block|
|
58
|
+
hash = args.first.is_a?(Hash) ? args.first : {}
|
59
|
+
|
58
60
|
filter = hash[:filter]
|
59
61
|
filter = [filter, "OriginatingSystemName eq '#{osn}'"].compact.join(' and ') if osn.present?
|
60
|
-
|
62
|
+
|
61
63
|
endpoint = FILTERABLE_ENDPOINTS[method_name]
|
62
64
|
response = {}
|
63
65
|
params = {
|
@@ -223,7 +225,6 @@ module RESO
|
|
223
225
|
def try_expand(entity_name)
|
224
226
|
endpoint = '/Property'
|
225
227
|
params = { '$expand' => entity_name }
|
226
|
-
params['$filter'] = "OriginatingSystemName eq '#{osn}'" if osn.present?
|
227
228
|
|
228
229
|
response = perform_call(endpoint, params, max_retries = 0)
|
229
230
|
(!response.is_a?(Hash) || !response.key?('error')) && response['statusCode'].blank? && response['status'].blank?
|
data/lib/reso_api/version.rb
CHANGED