Class: Chain::Balance::Query

Inherits:
Query
  • Object
show all
Defined in:
lib/chain/balance.rb

Instance Attribute Summary

Attributes inherited from Query

#client

Instance Method Summary collapse

Methods inherited from Query

#each, #initialize

Constructor Details

This class inherits a constructor from Chain::Query

Instance Method Details

#fetch(query) ⇒ Object



31
32
33
# File 'lib/chain/balance.rb', line 31

def fetch(query)
  client.conn.request('list-balances', query)
end

#translate(raw) ⇒ Object



35
36
37
# File 'lib/chain/balance.rb', line 35

def translate(raw)
  Balance.new(raw)
end