Class: Counterparty::Issuance

Inherits:
CounterResource show all
Defined in:
lib/counterparty/resources.rb

Overview

An object that describes a specific occurance of a user defined asset being issued, or re-issued

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, 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

#assetObject

(string): The asset being issued, or re-issued



389
390
391
# File 'lib/counterparty/resources.rb', line 389

def asset
  @asset
end

#block_indexObject

(integer): The block index (block number in the block chain)



386
387
388
# File 'lib/counterparty/resources.rb', line 386

def block_index
  @block_index
end

#descriptionObject

(string): This is used when creating an issuance, and indicates the destination address of the asset



415
416
417
# File 'lib/counterparty/resources.rb', line 415

def description
  @description
end

#divisibleObject

(boolean): Whether or not the asset is divisible (must agree with previous issuances of the asset, if there are any)



396
397
398
# File 'lib/counterparty/resources.rb', line 396

def divisible
  @divisible
end

#issuerObject

issuer (string):



399
400
401
# File 'lib/counterparty/resources.rb', line 399

def issuer
  @issuer
end

#quantityObject

(integer): The quantity of the specified asset being issued



392
393
394
# File 'lib/counterparty/resources.rb', line 392

def quantity
  @quantity
end

#sourceObject

(string): This is used when creating an issuance, and indicates the source address of the asset



411
412
413
# File 'lib/counterparty/resources.rb', line 411

def source
  @source
end

#transferObject

(boolean): Whether or not this objects marks the transfer of ownership rights for the specified quantity of this asset



403
404
405
# File 'lib/counterparty/resources.rb', line 403

def transfer
  @transfer
end

#transfer_destinationObject

(string): This is used when creating an issuance transfer, and indicates the destination address of the asset



419
420
421
# File 'lib/counterparty/resources.rb', line 419

def transfer_destination
  @transfer_destination
end

#tx_hashObject

(string): The transaction hash



383
384
385
# File 'lib/counterparty/resources.rb', line 383

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



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

def tx_index
  @tx_index
end

#validityObject

(string): Set to “valid” if a valid issuance. Any other setting signifies an invalid/improper issuance



407
408
409
# File 'lib/counterparty/resources.rb', line 407

def validity
  @validity
end