Class: XRBP::WebSocket::Cmds::AccountObjects
- Inherits:
-
XRBP::WebSocket::Command
- Object
- Message
- XRBP::WebSocket::Command
- XRBP::WebSocket::Cmds::AccountObjects
- Defined in:
- lib/xrbp/websocket/cmds/account_objects.rb
Overview
The account_objects command returns the raw ledger format for all objects owned by an 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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account, args = {}) ⇒ AccountObjects
constructor
A new instance of AccountObjects.
- #page_title ⇒ Object
- #to_h ⇒ Object
Methods inherited from XRBP::WebSocket::Command
Methods inherited from Message
Constructor Details
#initialize(account, args = {}) ⇒ AccountObjects
Returns a new instance of AccountObjects.
17 18 19 20 21 22 |
# File 'lib/xrbp/websocket/cmds/account_objects.rb', line 17 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.
15 16 17 |
# File 'lib/xrbp/websocket/cmds/account_objects.rb', line 15 def account @account end |
#args ⇒ Object
Returns the value of attribute args.
15 16 17 |
# File 'lib/xrbp/websocket/cmds/account_objects.rb', line 15 def args @args end |
Class Method Details
.from_h(h) ⇒ Object
24 25 26 27 28 |
# File 'lib/xrbp/websocket/cmds/account_objects.rb', line 24 def self.from_h(h) _h = Hash[h] a = _h.delete(:account) new a, _h end |
Instance Method Details
#page_title ⇒ Object
11 12 13 |
# File 'lib/xrbp/websocket/cmds/account_objects.rb', line 11 def page_title "account_objects" end |
#to_h ⇒ Object
30 31 32 33 |
# File 'lib/xrbp/websocket/cmds/account_objects.rb', line 30 def to_h args_without_paginate.merge(:command => :account_objects, :account => account) end |