Class: Counterparty::Debit

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

Overview

An object that describes a account debit or credit.

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

#actionObject

Returns the value of attribute action.



361
362
363
# File 'lib/counterparty/resources.rb', line 361

def action
  @action
end

#addressObject

(string): The address debited or credited



353
354
355
# File 'lib/counterparty/resources.rb', line 353

def address
  @address
end

#assetObject

(string): The asset debited or credited



356
357
358
# File 'lib/counterparty/resources.rb', line 356

def asset
  @asset
end

#block_indexObject

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



350
351
352
# File 'lib/counterparty/resources.rb', line 350

def block_index
  @block_index
end

#eventObject

Returns the value of attribute event.



363
364
365
# File 'lib/counterparty/resources.rb', line 363

def event
  @event
end

#quantityObject

(integer): The quantity of the specified asset debited or credited



359
360
361
# File 'lib/counterparty/resources.rb', line 359

def quantity
  @quantity
end

#tx_hashObject

(string): The transaction hash



347
348
349
# File 'lib/counterparty/resources.rb', line 347

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



344
345
346
# File 'lib/counterparty/resources.rb', line 344

def tx_index
  @tx_index
end