Class: Increase::Resources::InboundWireDrawdownRequests
- Inherits:
-
Object
- Object
- Increase::Resources::InboundWireDrawdownRequests
- Defined in:
- lib/increase/resources/inbound_wire_drawdown_requests.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ InboundWireDrawdownRequests
constructor
A new instance of InboundWireDrawdownRequests.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundWireDrawdownRequest>
List Inbound Wire Drawdown Requests.
-
#retrieve(inbound_wire_drawdown_request_id, opts = {}) ⇒ Increase::Models::InboundWireDrawdownRequest
Retrieve an Inbound Wire Drawdown Request.
Constructor Details
#initialize(client:) ⇒ InboundWireDrawdownRequests
Returns a new instance of InboundWireDrawdownRequests.
6 7 8 |
# File 'lib/increase/resources/inbound_wire_drawdown_requests.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundWireDrawdownRequest>
List Inbound Wire Drawdown Requests
34 35 36 37 38 39 40 41 42 |
# File 'lib/increase/resources/inbound_wire_drawdown_requests.rb', line 34 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/inbound_wire_drawdown_requests" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::InboundWireDrawdownRequest @client.request(req, opts) end |
#retrieve(inbound_wire_drawdown_request_id, opts = {}) ⇒ Increase::Models::InboundWireDrawdownRequest
Retrieve an Inbound Wire Drawdown Request
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/inbound_wire_drawdown_requests.rb', line 16 def retrieve(inbound_wire_drawdown_request_id, opts = {}) req = {} req[:method] = :get req[:path] = "/inbound_wire_drawdown_requests/#{inbound_wire_drawdown_request_id}" req[:model] = Increase::Models::InboundWireDrawdownRequest @client.request(req, opts) end |