class XRBP::WebSocket::Cmds::AccountOffers

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

Attributes

account[RW]
args[RW]

Public Class Methods

from_h(h) click to toggle source
# 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
new(account, args={}) click to toggle source
Calls superclass method
# File lib/xrbp/websocket/cmds/account_offers.rb, line 18
def initialize(account, args={})
  @account = account
  @args = args
  parse_paginate(args)
  super(to_h)
end

Public Instance Methods

page_title() click to toggle source
# File lib/xrbp/websocket/cmds/account_offers.rb, line 12
def page_title
  "offers"
end
to_h() click to toggle source
# File lib/xrbp/websocket/cmds/account_offers.rb, line 31
def to_h
  args_without_paginate.merge(:command => :account_offers,
                              :account => account)
end