Class: Chain::TransactionFeed::ClientModule
- Inherits:
-
ClientModule
- Object
- ClientModule
- Chain::TransactionFeed::ClientModule
- Defined in:
- lib/chain/transaction_feed.rb
Instance Attribute Summary
Attributes inherited from ClientModule
Instance Method Summary collapse
-
#create(opts) ⇒ TransactionFeed
Newly created transaction feed.
- #delete(opts) ⇒ void
-
#get(opts) ⇒ TransactionFeed
Get single transaction feed given an id/alias.
-
#query ⇒ Query
List all transaction feeds.
Methods inherited from ClientModule
Constructor Details
This class inherits a constructor from Chain::ClientModule
Instance Method Details
#create(opts) ⇒ TransactionFeed
Returns Newly created transaction feed.
89 90 91 92 |
# File 'lib/chain/transaction_feed.rb', line 89 def create(opts) opts = {client_token: SecureRandom.uuid()}.merge(opts) TransactionFeed.new(client.conn.request('create-transaction-feed', opts), client.conn) end |
#delete(opts) ⇒ void
This method returns an undefined value.
107 108 109 110 |
# File 'lib/chain/transaction_feed.rb', line 107 def delete(opts) client.conn.request('delete-transaction-feed', opts) nil end |
#get(opts) ⇒ TransactionFeed
Get single transaction feed given an id/alias.
99 100 101 |
# File 'lib/chain/transaction_feed.rb', line 99 def get(opts) TransactionFeed.new(client.conn.request('get-transaction-feed', opts), client.conn) end |