Class: Counterparty::Balance
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Balance
- Defined in:
- lib/counterparty/resources.rb
Overview
An object that describes a balance that is associated to a specific address.
Instance Attribute Summary collapse
-
#address ⇒ Object
(string): The address that has the balance.
-
#asset ⇒ Object
(string): The ID of the asset in which the balance is specified.
-
#quantity ⇒ Object
(integer): The balance of the specified asset at this address.
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
#address ⇒ Object
(string): The address that has the balance
6 7 8 |
# File 'lib/counterparty/resources.rb', line 6 def address @address end |
#asset ⇒ Object
(string): The ID of the asset in which the balance is specified
9 10 11 |
# File 'lib/counterparty/resources.rb', line 9 def asset @asset end |
#quantity ⇒ Object
(integer): The balance of the specified asset at this address
12 13 14 |
# File 'lib/counterparty/resources.rb', line 12 def quantity @quantity end |