Class: XRBP::WebSocket::Cmds::AccountLines
- Inherits:
-
XRBP::WebSocket::Command
- Object
- Message
- XRBP::WebSocket::Command
- XRBP::WebSocket::Cmds::AccountLines
- Defined in:
- lib/xrbp/websocket/cmds/account_lines.rb
Overview
The account_lines method returns information about an account’s trust lines, including balances in all non-XRP currencies and assets
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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account, args = {}) ⇒ AccountLines
constructor
A new instance of AccountLines.
- #page_title ⇒ Object
- #to_h ⇒ Object
Methods inherited from XRBP::WebSocket::Command
Methods inherited from Message
Constructor Details
#initialize(account, args = {}) ⇒ AccountLines
Returns a new instance of AccountLines.
18 19 20 21 22 23 |
# File 'lib/xrbp/websocket/cmds/account_lines.rb', line 18 def initialize(account, args={}) @account = account @args = args parse_paginate(args) super(to_h) end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
16 17 18 |
# File 'lib/xrbp/websocket/cmds/account_lines.rb', line 16 def account @account end |
#args ⇒ Object
Returns the value of attribute args.
16 17 18 |
# File 'lib/xrbp/websocket/cmds/account_lines.rb', line 16 def args @args end |
Class Method Details
.from_h(h) ⇒ Object
25 26 27 28 29 |
# File 'lib/xrbp/websocket/cmds/account_lines.rb', line 25 def self.from_h(h) _h = Hash[h] a = _h.delete(:account) new a, _h end |
Instance Method Details
#page_title ⇒ Object
12 13 14 |
# File 'lib/xrbp/websocket/cmds/account_lines.rb', line 12 def page_title "account_lines" end |
#to_h ⇒ Object
31 32 33 34 |
# File 'lib/xrbp/websocket/cmds/account_lines.rb', line 31 def to_h args_without_paginate.merge(:command => :account_lines, :account => account) end |