class XRBP::NodeStore::STLedgerEntry
Special type of Serialized Object whose type is identified through the 'ledger_entry_type' field
Attributes
key[R]
Public Class Methods
new(args={})
click to toggle source
Calls superclass method
# File lib/xrbp/nodestore/sle/st_ledger_entry.rb, line 8 def initialize(args={}) super @key = args[:key] end
Public Instance Methods
type()
click to toggle source
# File lib/xrbp/nodestore/sle/st_ledger_entry.rb, line 17 def type @type ||= Format::LEDGER_ENTRY_TYPE_CODES[type_code] end
type_code()
click to toggle source
# File lib/xrbp/nodestore/sle/st_ledger_entry.rb, line 13 def type_code @type_code ||= field(:uint16, :ledger_entry_type) end