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
private
A new instance of InboundWireDrawdownRequests.
-
#list(cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundWireDrawdownRequest>
Some parameter documentations has been truncated, see Models::InboundWireDrawdownRequestListParams for more details.
-
#retrieve(inbound_wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::InboundWireDrawdownRequest
Retrieve an Inbound Wire Drawdown Request.
Constructor Details
#initialize(client:) ⇒ InboundWireDrawdownRequests
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of InboundWireDrawdownRequests.
57 58 59 |
# File 'lib/increase/resources/inbound_wire_drawdown_requests.rb', line 57 def initialize(client:) @client = client end |
Instance Method Details
#list(cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::InboundWireDrawdownRequest>
Some parameter documentations has been truncated, see Models::InboundWireDrawdownRequestListParams for more details.
List Inbound Wire Drawdown Requests
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/increase/resources/inbound_wire_drawdown_requests.rb', line 42 def list(params = {}) parsed, = Increase::InboundWireDrawdownRequestListParams.dump_request(params) @client.request( method: :get, path: "inbound_wire_drawdown_requests", query: parsed, page: Increase::Internal::Page, model: Increase::InboundWireDrawdownRequest, options: ) end |
#retrieve(inbound_wire_drawdown_request_id, request_options: {}) ⇒ Increase::Models::InboundWireDrawdownRequest
Retrieve an Inbound Wire Drawdown Request
17 18 19 20 21 22 23 24 |
# File 'lib/increase/resources/inbound_wire_drawdown_requests.rb', line 17 def retrieve(inbound_wire_drawdown_request_id, params = {}) @client.request( method: :get, path: ["inbound_wire_drawdown_requests/%1$s", inbound_wire_drawdown_request_id], model: Increase::InboundWireDrawdownRequest, options: params[:request_options] ) end |