housecanary-ruby 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/housecanary/api/repository.rb +1 -1
- data/lib/housecanary/api/sales_history.rb +1 -1
- data/lib/housecanary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e13074985fde9557197be438ffa66c3becc946e2879a6426614163c77bbb2710
|
4
|
+
data.tar.gz: d5c22dae8fd3ad67e23b566dfdb4400b80ef93573d06741c340ea20006304990
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2647c3966fb46fe5bb4d051a156ed295bfa2257c59526a8725306dcba2d7b205dfccc9c2341097c94b1d4cd96163ef622ee9f7cf3d418370a589ca21f8d30984
|
7
|
+
data.tar.gz: 52057e2ba4b628e39e06b7feed3f9675a29d367e3ab089456632ab9513a7711d45704f1a28c84dfab682f25336bcb87f3946b72f9f694e8ecb694f40009a833f
|
@@ -13,7 +13,7 @@ module Housecanary
|
|
13
13
|
|
14
14
|
def sales_history(params = {})
|
15
15
|
if (response = perform_response(:get, SALES_HISTORY_PATH, params))
|
16
|
-
SalesHistory.new(response&.first&.fetch(:'property/sales_history', nil))
|
16
|
+
SalesHistory.new(**response&.first&.fetch(:'property/sales_history', nil))
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -11,7 +11,7 @@ module Housecanary
|
|
11
11
|
extend Dry::Initializer
|
12
12
|
option :api_code_description, optional: true
|
13
13
|
option :api_code, optional: true
|
14
|
-
option :result, type: Dry::Types['coercible.array'].of(Dry.Types.Constructor(Sale))
|
14
|
+
option :result, type: Dry::Types['coercible.array'].of(Dry.Types.Constructor(Sale) { |args| Sale.new(**args) })
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
data/lib/housecanary/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: housecanary-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilia Kriachkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-auto_inject
|