class XRBP::WebSocket::Cmds::AccountInfo

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

developers.ripple.com/account_info.html

Attributes

account[RW]
args[RW]

Public Class Methods

new(account, args={}) click to toggle source
Calls superclass method
# File lib/xrbp/websocket/cmds/account_info.rb, line 11
def initialize(account, args={})
  @account = account
  @args = args
  super(to_h)
end

Public Instance Methods

to_h() click to toggle source
# File lib/xrbp/websocket/cmds/account_info.rb, line 17
def to_h
  args.merge(:command => :account_info,
             :account => account)
end