Class: XRBP::WebSocket::Cmds::LedgerEntry

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

Overview

The ledger_entry method returns a single ledger object from the XRP Ledger in its raw format

developers.ripple.com/ledger_entry.html

Instance Attribute Summary

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(args = {}) ⇒ LedgerEntry

Returns a new instance of LedgerEntry.


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

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

Instance Method Details

#to_hObject


14
15
16
# File 'lib/xrbp/websocket/cmds/ledger_entry.rb', line 14

def to_h
  @args.merge('command' => 'ledger_entry')
end