sealine_insurance 1.0.0 → 1.0.1
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: 7f8468bc392fa0743e78395915c6b0ab388a2d5a
|
4
|
+
data.tar.gz: 9c6afc24aa9c26095db97d6c387ace3fa6dc0496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be3dc35208e4735d776f42bad333c690457b9f48f29c8971f51c322b2c3d8108fa8efc420892ea1a57795e2510d1a89c8273ac768eab5bda2659f2a797c8cf8
|
7
|
+
data.tar.gz: 25ff3d2d6851fff4ce932423ea168591204169c3e872603422b4ed09d75b24d62d86d710f72f05e4e68c0eb0cc7e9e0ba951fbc128762df02556e402feb77a3e
|
@@ -21,7 +21,7 @@ module SealineInsurance
|
|
21
21
|
def price
|
22
22
|
result = body['results']&.detect { |item| item['status'] == 'DONE' }
|
23
23
|
if result && result['price']
|
24
|
-
Money.
|
24
|
+
Money.from_amount(result['price'].to_f, DEFAULT_CURRENCY)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|