sealine_insurance 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b4d5ea8dad442272118a4d2feec5961272eb9a4
|
4
|
+
data.tar.gz: 022f972433736ffda4f5dd9964977dbc066f3263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29208d8432593e45da8f88bbf03479416b1a44b488663ea7deee01f43dff71daef64285790ce09f03923a99184e8c950e16b9d9c45b968400176f3c1ab96a98c
|
7
|
+
data.tar.gz: 3e5bd19fe9574f9dc06918ca75cb8ca90e0d4070b93313724d523621488da7e761dea5eab4e0727cbb8647331ab05ae4183c6e0b2944cb94a636339e8b679644
|
@@ -19,10 +19,17 @@ module SealineInsurance
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def price
|
22
|
-
result
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
to_money(result['price'])
|
23
|
+
end
|
24
|
+
|
25
|
+
def coverage
|
26
|
+
to_money(result.dig('result_data', 'coverage'))
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def result
|
32
|
+
@result ||= body['results']&.detect { |item| item['status'] == 'DONE' } || {}
|
26
33
|
end
|
27
34
|
end
|
28
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sealine_insurance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Khrebtov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|