Class: Counterparty::Dividend
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Dividend
- Defined in:
- lib/counterparty/resources.rb
Overview
An object that describes an issuance of dividends on a specific user defined asset.
Instance Attribute Summary collapse
-
#asset ⇒ Object
(string): The asset that the dividends are being rewarded on.
-
#block_index ⇒ Object
(integer): The block index (block number in the block chain).
-
#dividend_asset ⇒ Object
(string, required): The asset that the dividends are paid in.
-
#quantity_per_unit ⇒ Object
(integer): The quantity of XCP rewarded per whole unit of the asset.
-
#source ⇒ Object
(string): The address that issued the dividend.
-
#tx_hash ⇒ Object
(string): The transaction hash.
-
#tx_index ⇒ Object
(integer): The transaction index.
-
#validity ⇒ Object
(string): Set to “valid” if a valid burn.
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
#asset ⇒ Object
(string): The asset that the dividends are being rewarded on
382 383 384 |
# File 'lib/counterparty/resources.rb', line 382 def asset @asset end |
#block_index ⇒ Object
(integer): The block index (block number in the block chain)
376 377 378 |
# File 'lib/counterparty/resources.rb', line 376 def block_index @block_index end |
#dividend_asset ⇒ Object
(string, required): The asset that the dividends are paid in.
392 393 394 |
# File 'lib/counterparty/resources.rb', line 392 def dividend_asset @dividend_asset end |
#quantity_per_unit ⇒ Object
(integer): The quantity of XCP rewarded per whole unit of the asset
385 386 387 |
# File 'lib/counterparty/resources.rb', line 385 def quantity_per_unit @quantity_per_unit end |
#source ⇒ Object
(string): The address that issued the dividend
379 380 381 |
# File 'lib/counterparty/resources.rb', line 379 def source @source end |
#tx_hash ⇒ Object
(string): The transaction hash
373 374 375 |
# File 'lib/counterparty/resources.rb', line 373 def tx_hash @tx_hash end |
#tx_index ⇒ Object
(integer): The transaction index
370 371 372 |
# File 'lib/counterparty/resources.rb', line 370 def tx_index @tx_index end |
#validity ⇒ Object
(string): Set to “valid” if a valid burn. Any other setting signifies an invalid/improper burn
389 390 391 |
# File 'lib/counterparty/resources.rb', line 389 def validity @validity end |