Class: Chain::TransactionFeed::Query

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



121
122
123
# File 'lib/chain/transaction_feed.rb', line 121

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

#translate(raw) ⇒ Object



125
126
127
# File 'lib/chain/transaction_feed.rb', line 125

def translate(raw)
  TransactionFeed.new(raw, client.conn)
end