Class: Counterparty::Credit

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

Overview

An object that describes a account 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.



336
337
338
# File 'lib/counterparty/resources.rb', line 336

def action
  @action
end

#addressObject

(string): The address debited or credited



328
329
330
# File 'lib/counterparty/resources.rb', line 328

def address
  @address
end

#assetObject

(string): The asset debited or credited



331
332
333
# File 'lib/counterparty/resources.rb', line 331

def asset
  @asset
end

#block_indexObject

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



325
326
327
# File 'lib/counterparty/resources.rb', line 325

def block_index
  @block_index
end

#eventObject

Returns the value of attribute event.



338
339
340
# File 'lib/counterparty/resources.rb', line 338

def event
  @event
end

#quantityObject

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



334
335
336
# File 'lib/counterparty/resources.rb', line 334

def quantity
  @quantity
end

#tx_hashObject

(string): The transaction hash



322
323
324
# File 'lib/counterparty/resources.rb', line 322

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



319
320
321
# File 'lib/counterparty/resources.rb', line 319

def tx_index
  @tx_index
end