Class: Chain::TransactionFeed::ClientModule

Inherits:
ClientModule show all
Defined in:
lib/chain/transaction_feed.rb

Instance Attribute Summary

Attributes inherited from ClientModule

#client

Instance Method Summary collapse

Methods inherited from ClientModule

#initialize

Constructor Details

This class inherits a constructor from Chain::ClientModule

Instance Method Details

#create(opts) ⇒ TransactionFeed

Parameters:

  • opts (Hash)

Returns:



86
87
88
89
# File 'lib/chain/transaction_feed.rb', line 86

def create(opts)
  opts = {client_token: SecureRandom.uuid()}.merge(opts)
  TransactionFeed.new(client.conn.request('create-transaction-feed', opts), client.conn)
end

#get(opts) ⇒ TransactionFeed

Parameters:

  • opts (Hash)

Returns:



93
94
95
# File 'lib/chain/transaction_feed.rb', line 93

def get(opts)
  TransactionFeed.new(client.conn.request('get-transaction-feed', opts), client.conn)
end