Class: XRBP::WebSocket::Cmds::AccountLines

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

developers.ripple.com/account_lines.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 = {}) ⇒ 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(, args={})
  @account = 
  @args = args
  parse_paginate(args)
  super(to_h)
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.



16
17
18
# File 'lib/xrbp/websocket/cmds/account_lines.rb', line 16

def 
  @account
end

#argsObject

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_titleObject



12
13
14
# File 'lib/xrbp/websocket/cmds/account_lines.rb', line 12

def page_title
  "account_lines"
end

#to_hObject



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