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

#actionObject

Returns the value of attribute action.



317
318
319
# File 'lib/counterparty/resources.rb', line 317

def action
  @action
end

#addressObject

(string): The address debited or credited



309
310
311
# File 'lib/counterparty/resources.rb', line 309

def address
  @address
end

#assetObject

(string): The asset debited or credited



312
313
314
# File 'lib/counterparty/resources.rb', line 312

def asset
  @asset
end

#block_indexObject

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



306
307
308
# File 'lib/counterparty/resources.rb', line 306

def block_index
  @block_index
end

#eventObject

Returns the value of attribute event.



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

def event
  @event
end

#quantityObject

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



315
316
317
# File 'lib/counterparty/resources.rb', line 315

def quantity
  @quantity
end

#tx_hashObject

(string): The transaction hash



303
304
305
# File 'lib/counterparty/resources.rb', line 303

def tx_hash
  @tx_hash
end

#tx_indexObject

(integer): The transaction index



300
301
302
# File 'lib/counterparty/resources.rb', line 300

def tx_index
  @tx_index
end