Class: Counterparty::Credit
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Credit
- Defined in:
- lib/counterparty/resources.rb
Overview
An object that describes a account credit.
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#address ⇒ Object
(string): The address debited or credited.
-
#asset ⇒ Object
(string): The asset debited or credited.
-
#block_index ⇒ Object
(integer): The block index (block number in the block chain).
-
#event ⇒ Object
Returns the value of attribute event.
-
#quantity ⇒ Object
(integer): The quantity of the specified asset debited or credited.
-
#tx_hash ⇒ Object
(string): The transaction hash.
-
#tx_index ⇒ Object
(integer): The transaction index.
Attributes inherited from CounterResource
#allow_unconfirmed_inputs, #encoding, #fee, #fee_per_kb, #pubkey, #result_attributes
Method Summary
Methods inherited from CounterResource
#==, api_name, bitcoin, find, #initialize, #save!, to_create_request, to_get_request, #to_raw_tx, #to_signed_tx
Constructor Details
This class inherits a constructor from Counterparty::CounterResource
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
336 337 338 |
# File 'lib/counterparty/resources.rb', line 336 def action @action end |
#address ⇒ Object
(string): The address debited or credited
328 329 330 |
# File 'lib/counterparty/resources.rb', line 328 def address @address end |
#asset ⇒ Object
(string): The asset debited or credited
331 332 333 |
# File 'lib/counterparty/resources.rb', line 331 def asset @asset end |
#block_index ⇒ Object
(integer): The block index (block number in the block chain)
325 326 327 |
# File 'lib/counterparty/resources.rb', line 325 def block_index @block_index end |
#event ⇒ Object
Returns the value of attribute event.
338 339 340 |
# File 'lib/counterparty/resources.rb', line 338 def event @event end |
#quantity ⇒ Object
(integer): The quantity of the specified asset debited or credited
334 335 336 |
# File 'lib/counterparty/resources.rb', line 334 def quantity @quantity end |
#tx_hash ⇒ Object
(string): The transaction hash
322 323 324 |
# File 'lib/counterparty/resources.rb', line 322 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
319 320 321 |
# File 'lib/counterparty/resources.rb', line 319 def tx_index @tx_index end |