Class: XRBP::WebSocket::Cmds::AccountOffers

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

Overview

The account_offers method retrieves a list of offers made by a given account that are outstanding as of a particular ledger version.

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

Returns a new instance of AccountOffers.



18
19
20
21
22
23
# File 'lib/xrbp/websocket/cmds/account_offers.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_offers.rb', line 16

def 
  @account
end

#argsObject

Returns the value of attribute args.



16
17
18
# File 'lib/xrbp/websocket/cmds/account_offers.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_offers.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_offers.rb', line 12

def page_title
  "offers"
end

#to_hObject



31
32
33
34
# File 'lib/xrbp/websocket/cmds/account_offers.rb', line 31

def to_h
  args_without_paginate.merge(:command => :account_offers,
                              :account => )
end