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
101
102
103
|
# File 'lib/chain/account.rb', line 101
def fetch(query)
client.conn.request('list-accounts', query)
end
|
#translate(raw) ⇒ Object
105
106
107
|
# File 'lib/chain/account.rb', line 105
def translate(raw)
Account.new(raw)
end
|