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, find, #initialize, #save!, to_create_request, to_do_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.
317 318 319 |
# File 'lib/counterparty/resources.rb', line 317 def action @action end |
#address ⇒ Object
(string): The address debited or credited
309 310 311 |
# File 'lib/counterparty/resources.rb', line 309 def address @address end |
#asset ⇒ Object
(string): The asset debited or credited
312 313 314 |
# File 'lib/counterparty/resources.rb', line 312 def asset @asset end |
#block_index ⇒ Object
(integer): The block index (block number in the block chain)
306 307 308 |
# File 'lib/counterparty/resources.rb', line 306 def block_index @block_index end |
#event ⇒ Object
Returns the value of attribute event.
319 320 321 |
# File 'lib/counterparty/resources.rb', line 319 def event @event end |
#quantity ⇒ Object
(integer): The quantity of the specified asset debited or credited
315 316 317 |
# File 'lib/counterparty/resources.rb', line 315 def quantity @quantity end |
#tx_hash ⇒ Object
(string): The transaction hash
303 304 305 |
# File 'lib/counterparty/resources.rb', line 303 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
300 301 302 |
# File 'lib/counterparty/resources.rb', line 300 def tx_index @tx_index end |