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: 899ba793d64bc085d6d163ccf4c9f33d708e3f6b
4
- data.tar.gz: 954959b1f88ae37f6694bf3456b22fb3b80a1b4e
3
+ metadata.gz: 7f8468bc392fa0743e78395915c6b0ab388a2d5a
4
+ data.tar.gz: 9c6afc24aa9c26095db97d6c387ace3fa6dc0496
5
5
  SHA512:
6
- metadata.gz: 7d9eac9bc6fe8b5e90326227b94348251e1e3342e06cf1e80c054f34319608be484cc0f38a166bd581700f16bffb88095a57a01f97b6e1c6bcf9fbc40e9e59d6
7
- data.tar.gz: 61a12fe07c3bd971d8877fae0529d01494c300e880d15aabf763db680ca5b61854b5173ae010456311b4581a55d1665e1975227419d3162005e54a1458b96e4a
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.new(result['price'], DEFAULT_CURRENCY)
24
+ Money.from_amount(result['price'].to_f, DEFAULT_CURRENCY)
25
25
  end
26
26
  end
27
27
  end
@@ -28,7 +28,7 @@ module SealineInsurance
28
28
  end
29
29
 
30
30
  def price
31
- Money.new(body['price'], DEFAULT_CURRENCY) if body['price']
31
+ Money.from_amount(body['price'].to_f, DEFAULT_CURRENCY) if body['price']
32
32
  end
33
33
 
34
34
  def documents
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SealineInsurance
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sealine_insurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Khrebtov