Class: Counterparty::Dividend

Inherits:
CounterResource show all
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

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

#assetObject

(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_indexObject

(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_assetObject

(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_unitObject

(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

#sourceObject

(string): The address that issued the dividend



379
380
381
# File 'lib/counterparty/resources.rb', line 379

def source
  @source
end

#tx_hashObject

(string): The transaction hash



373
374
375
# File 'lib/counterparty/resources.rb', line 373

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



370
371
372
# File 'lib/counterparty/resources.rb', line 370

def tx_index
  @tx_index
end

#validityObject

(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