Class: Counterparty::Balance

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

Overview

An object that describes a balance that is associated to a specific address.

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

#addressObject

(string): The address that has the balance



6
7
8
# File 'lib/counterparty/resources.rb', line 6

def address
  @address
end

#assetObject

(string): The ID of the asset in which the balance is specified



9
10
11
# File 'lib/counterparty/resources.rb', line 9

def asset
  @asset
end

#quantityObject

(integer): The balance of the specified asset at this address



12
13
14
# File 'lib/counterparty/resources.rb', line 12

def quantity
  @quantity
end