Class: XRBP::WebSocket::Cmds::AccountTx
- Inherits:
-
XRBP::WebSocket::Command
- Object
- Message
- XRBP::WebSocket::Command
- XRBP::WebSocket::Cmds::AccountTx
- Defined in:
- lib/xrbp/websocket/cmds/account_tx.rb
Overview
The account_tx method retrieves a list of transactions that involved the specified account.
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#args ⇒ Object
Returns the value of attribute args.
Attributes inherited from XRBP::WebSocket::Command
Attributes inherited from Message
#bl, #connection, #result, #time
Instance Method Summary collapse
-
#initialize(account, args = {}) ⇒ AccountTx
constructor
A new instance of AccountTx.
- #to_h ⇒ Object
Methods inherited from XRBP::WebSocket::Command
Methods inherited from Message
Constructor Details
#initialize(account, args = {}) ⇒ AccountTx
Returns a new instance of AccountTx.
11 12 13 14 15 |
# File 'lib/xrbp/websocket/cmds/account_tx.rb', line 11 def initialize(account, args={}) @account = account @args = args super(to_h) end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
9 10 11 |
# File 'lib/xrbp/websocket/cmds/account_tx.rb', line 9 def account @account end |
#args ⇒ Object
Returns the value of attribute args.
9 10 11 |
# File 'lib/xrbp/websocket/cmds/account_tx.rb', line 9 def args @args end |
Instance Method Details
#to_h ⇒ Object
17 18 19 20 |
# File 'lib/xrbp/websocket/cmds/account_tx.rb', line 17 def to_h args.merge(:command => :account_tx, :account => account) end |