class Evoc::Tx
Attributes
date[R]
id[R]
index[RW]
items[RW]
Public Class Methods
new(index: nil,id:,date: nil,items:)
click to toggle source
# File lib/evoc/tx.rb, line 7 def initialize(index: nil,id:,date: nil,items:) @index = index @id = id @date = date @items = items end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/evoc/tx.rb, line 18 def <=> other self.index <=> other.index end
size()
click to toggle source
# File lib/evoc/tx.rb, line 14 def size self.items.size end
to_a()
click to toggle source
# File lib/evoc/tx.rb, line 30 def to_a self.items.to_a end
to_i()
click to toggle source
# File lib/evoc/tx.rb, line 22 def to_i self.index.to_i end
to_s()
click to toggle source
# File lib/evoc/tx.rb, line 26 def to_s self.id.to_s end