Class: XRBP::WebSocket::Cmds::LedgerEntry
- Inherits:
-
XRBP::WebSocket::Command
- Object
- Message
- XRBP::WebSocket::Command
- XRBP::WebSocket::Cmds::LedgerEntry
- 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
Instance Attribute Summary
Attributes inherited from XRBP::WebSocket::Command
Attributes inherited from Message
#bl, #connection, #result, #time
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ LedgerEntry
constructor
A new instance of LedgerEntry.
- #to_h ⇒ Object
Methods inherited from XRBP::WebSocket::Command
Methods inherited from Message
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_h ⇒ Object
14 15 16 |
# File 'lib/xrbp/websocket/cmds/ledger_entry.rb', line 14 def to_h @args.merge('command' => 'ledger_entry') end |