Class: XRBP::WebSocket::Cmds::AccountTx

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

Overview

The account_tx method retrieves a list of transactions that involved the specified account.

developers.ripple.com/account_tx.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 = {}) ⇒ AccountTx

Returns a new instance of AccountTx.



11
12
13
14
15
# File 'lib/xrbp/websocket/cmds/account_tx.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_tx.rb', line 9

def 
  @account
end

#argsObject

Returns the value of attribute args.



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

def args
  @args
end

Instance Method Details

#to_hObject



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

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