Class: XRBP::WebSocket::Cmds::AccountObjects

Inherits:
XRBP::WebSocket::Command show all
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

developers.ripple.com/account_objects.html

Instance Attribute Summary collapse

Attributes inherited from XRBP::WebSocket::Command

#id, #json

Attributes inherited from Message

#bl, #connection, #result, #time

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from XRBP::WebSocket::Command

#requesting, #requesting?

Methods inherited from Message

#signal, #to_s, #wait

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(, args={})
  @account = 
  @args = args
  parse_paginate(args)
  super(to_h)
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.



15
16
17
# File 'lib/xrbp/websocket/cmds/account_objects.rb', line 15

def 
  @account
end

#argsObject

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_titleObject



11
12
13
# File 'lib/xrbp/websocket/cmds/account_objects.rb', line 11

def page_title
  "account_objects"
end

#to_hObject



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 => )
end