revo-loans_api 0.0.23 → 0.0.24

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
  SHA256:
3
- metadata.gz: fa50f24dd72aa71f069c3bcc3a8b72f3e17701ff4ade63d483f789016be694ac
4
- data.tar.gz: 2383424184de27752a8b89505a97985c4772d9c608f49ce17a5642c5fe8010d2
3
+ metadata.gz: c886f8eec0c7b37c12604cec95bf29e8f5502bb26ff16d5ee9e3ed6686f57ca3
4
+ data.tar.gz: c547f05d42fcc979a97c07352acd7bce1f6575ac35ddd35cd2709e9fa8eb75b9
5
5
  SHA512:
6
- metadata.gz: bf0b0126ac8abdb2c67f84b2737e7532fa086a25e6474e8ea829004a045c9f395cee434ce56523ee872982c1c4ab6fd3a54a672fdf8f7308e9c95ec5fbfbdfb5
7
- data.tar.gz: a156f89429045bb046eae8baa4e8859bd136b6c3cb92679e076547156eb2d5dcb68339c7d25b86181deced28d2507a140c2013c18eb20fc355961e95533fe04f
6
+ metadata.gz: 1230aa60e51a21c5733d6ece491717b161ac4d25d04ed444a27479bff571d5361400f07238e2fb50de9761c6c4b9c1286f1e134031cc77114fd3e783d22c3f7a
7
+ data.tar.gz: 00b5c7f4b15afee0c19acc715ec97e18af4a2ecdf07b995a118805b8f5d9a47375f4e5b3e6b8d2c943a893f2cb283591903d3e861f25cc0c371f05171a66e478
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.23)
4
+ revo-loans_api (0.0.24)
5
5
  activesupport
6
6
  http
7
7
 
@@ -83,6 +83,16 @@ class Revo::LoansApi::Client
83
83
  result.success? ? result.response[:loan_request] : []
84
84
  end
85
85
 
86
+ def get_loan_request_attributes(token:)
87
+ result = make_request(:get, "loan_requests/#{token}")
88
+ return result unless result.success?
89
+
90
+ Result.new(
91
+ success?: true,
92
+ response: result.response[:loan_request_attributes]
93
+ )
94
+ end
95
+
86
96
  # prerequisite: a client with the LR's phone number should already exist
87
97
  def document(token:, type:, format: 'html')
88
98
  make_request(:get, "loan_requests/#{token}/documents/#{type}.#{format}")
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.23'.freeze
3
+ VERSION = '0.0.24'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revo-loans_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Revo Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-31 00:00:00.000000000 Z
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http