Class: Increase::Resources::WireDrawdownRequests
- Inherits:
-
Object
- Object
- Increase::Resources::WireDrawdownRequests
- Defined in:
- lib/increase/resources/wire_drawdown_requests.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::WireDrawdownRequest
Create a Wire Drawdown Request.
-
#initialize(client:) ⇒ WireDrawdownRequests
constructor
A new instance of WireDrawdownRequests.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::WireDrawdownRequest>
List Wire Drawdown Requests.
-
#retrieve(wire_drawdown_request_id, opts = {}) ⇒ Increase::Models::WireDrawdownRequest
Retrieve a Wire Drawdown Request.
Constructor Details
#initialize(client:) ⇒ WireDrawdownRequests
Returns a new instance of WireDrawdownRequests.
6 7 8 |
# File 'lib/increase/resources/wire_drawdown_requests.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::WireDrawdownRequest
Create a Wire Drawdown Request
38 39 40 41 42 43 44 45 |
# File 'lib/increase/resources/wire_drawdown_requests.rb', line 38 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/wire_drawdown_requests" req[:body] = params req[:model] = Increase::Models::WireDrawdownRequest @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::WireDrawdownRequest>
List Wire Drawdown Requests
76 77 78 79 80 81 82 83 84 |
# File 'lib/increase/resources/wire_drawdown_requests.rb', line 76 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/wire_drawdown_requests" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::WireDrawdownRequest @client.request(req, opts) end |
#retrieve(wire_drawdown_request_id, opts = {}) ⇒ Increase::Models::WireDrawdownRequest
Retrieve a Wire Drawdown Request
53 54 55 56 57 58 59 |
# File 'lib/increase/resources/wire_drawdown_requests.rb', line 53 def retrieve(wire_drawdown_request_id, opts = {}) req = {} req[:method] = :get req[:path] = "/wire_drawdown_requests/#{wire_drawdown_request_id}" req[:model] = Increase::Models::WireDrawdownRequest @client.request(req, opts) end |