Class: Rippler::Ledger

Inherits:
OpenStruct
  • Object
show all
Includes:
Utils
Defined in:
lib/rippler/ledger.rb

Overview

Represents a single LedgerClose event

Constant Summary

Constants included from Utils

Utils::RIPPLE_TIME_OFFSET

Instance Method Summary collapse

Methods included from Utils

#Account, #Money, #Offer, #Time

Instance Method Details

#to_sObject



6
7
8
9
# File 'lib/rippler/ledger.rb', line 6

def to_s
  "#{Time(self.ledger_time).strftime("%Y-%m-%d %H:%M:%S")} " +
    "Ledger ##{self.ledger_index}, txn: #{self.txn_count}"
end