Class: Chain::Asset::Query

Inherits:
Query
  • Object
show all
Defined in:
lib/chain/asset.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



98
99
100
# File 'lib/chain/asset.rb', line 98

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

#translate(raw) ⇒ Object



102
103
104
# File 'lib/chain/asset.rb', line 102

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