Class: Increase::Resources::PendingTransactions
- Inherits:
-
Object
- Object
- Increase::Resources::PendingTransactions
- Defined in:
- lib/increase/resources/pending_transactions.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ PendingTransactions
constructor
A new instance of PendingTransactions.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::PendingTransaction>
List Pending Transactions.
-
#retrieve(pending_transaction_id, opts = {}) ⇒ Increase::Models::PendingTransaction
Retrieve a Pending Transaction.
Constructor Details
#initialize(client:) ⇒ PendingTransactions
Returns a new instance of PendingTransactions.
6 7 8 |
# File 'lib/increase/resources/pending_transactions.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::PendingTransaction>
List Pending Transactions
40 41 42 43 44 45 46 47 48 |
# File 'lib/increase/resources/pending_transactions.rb', line 40 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/pending_transactions" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::PendingTransaction @client.request(req, opts) end |
#retrieve(pending_transaction_id, opts = {}) ⇒ Increase::Models::PendingTransaction
Retrieve a Pending Transaction
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/pending_transactions.rb', line 16 def retrieve(pending_transaction_id, opts = {}) req = {} req[:method] = :get req[:path] = "/pending_transactions/#{pending_transaction_id}" req[:model] = Increase::Models::PendingTransaction @client.request(req, opts) end |