Class: Increase::Resources::Simulations::InboundWireTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::InboundWireTransfers
- Defined in:
- lib/increase/resources/simulations/inbound_wire_transfers.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::InboundWireTransfer
Simulates an inbound Wire Transfer to your account.
-
#initialize(client:) ⇒ InboundWireTransfers
constructor
A new instance of InboundWireTransfers.
Constructor Details
#initialize(client:) ⇒ InboundWireTransfers
Returns a new instance of InboundWireTransfers.
7 8 9 |
# File 'lib/increase/resources/simulations/inbound_wire_transfers.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::InboundWireTransfer
Simulates an inbound Wire Transfer to your account.
50 51 52 53 54 55 56 57 |
# File 'lib/increase/resources/simulations/inbound_wire_transfers.rb', line 50 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/inbound_wire_transfers" req[:body] = params req[:model] = Increase::Models::InboundWireTransfer @client.request(req, opts) end |