Class: Roart::HistoryArray

Inherits:
Array
  • Object
show all
Defined in:
lib/roart/history.rb

Instance Method Summary collapse

Methods inherited from Array

#to_hash

Instance Method Details

#allObject



16
17
18
# File 'lib/roart/history.rb', line 16

def all
  self
end

#countObject



20
21
22
# File 'lib/roart/history.rb', line 20

def count
  self.size
end

#lastObject



24
25
26
# File 'lib/roart/history.rb', line 24

def last
  self[self.size - 1]
end

#ticketObject



12
13
14
# File 'lib/roart/history.rb', line 12

def ticket
  @default_options[:ticket]
end