Class: Coinbase::Wallet::Request
- Inherits:
-
Transaction
- Object
- Hash
- APIObject
- Transaction
- Coinbase::Wallet::Request
- Defined in:
- lib/coinbase/wallet/models/transaction.rb
Instance Method Summary collapse
Methods inherited from APIObject
#format, #initialize, #method_missing, #refresh!, #respond_to_missing?, #update
Constructor Details
This class inherits a constructor from Coinbase::Wallet::APIObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Coinbase::Wallet::APIObject
Instance Method Details
#cancel!(params = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/coinbase/wallet/models/transaction.rb', line 13 def cancel!(params = {}) @client.delete("#{self['resource_path']}", params) do |resp| yield(resp.data, resp) if block_given? end end |
#resend!(params = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/coinbase/wallet/models/transaction.rb', line 7 def resend!(params = {}) @client.post("#{self['resource_path']}/resend", params) do |resp| yield(resp.data, resp) if block_given? end end |