Class: XRBP::WebSocket::Cmds::AccountInfo

Inherits:
XRBP::WebSocket::Command show all
Defined in:
lib/xrbp/websocket/cmds/account_info.rb

Overview

The account_info command retrieves information about an account, its activity, and its XRP balance.

developers.ripple.com/account_info.html

Instance Attribute Summary collapse

Attributes inherited from XRBP::WebSocket::Command

#id, #json

Attributes inherited from Message

#bl, #connection, #result, #time

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 = {}) ⇒ AccountInfo

Returns a new instance of AccountInfo.


11
12
13
14
15
# File 'lib/xrbp/websocket/cmds/account_info.rb', line 11

def initialize(, args={})
  @account = 
  @args = args
  super(to_h)
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.


9
10
11
# File 'lib/xrbp/websocket/cmds/account_info.rb', line 9

def 
  @account
end

#argsObject

Returns the value of attribute args.


9
10
11
# File 'lib/xrbp/websocket/cmds/account_info.rb', line 9

def args
  @args
end

Instance Method Details

#to_hObject


17
18
19
20
# File 'lib/xrbp/websocket/cmds/account_info.rb', line 17

def to_h
  args.merge(:command => :account_info,
             :account => )
end