Class: Chain::Account::Query
- Inherits:
-
Query
- Object
- Query
- Chain::Account::Query
show all
- Defined in:
- lib/chain/account.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
99
100
101
|
# File 'lib/chain/account.rb', line 99
def fetch(query)
client.conn.request('list-accounts', query)
end
|
#translate(raw) ⇒ Object
103
104
105
|
# File 'lib/chain/account.rb', line 103
def translate(raw)
Account.new(raw)
end
|