Class: Record

Inherits:
Object
  • Object
show all
Defined in:
service/records/records.rb

Overview

History Record Model class

Instance Method Summary collapse

Instance Method Details

#mod(st) ⇒ Object

Modifies state by just replacing :state with state from Record



39
40
41
# File 'service/records/records.rb', line 39

def mod st
  st[:state] = state
end

#sortableObject

Record is sortable itself, so just returns itself



28
29
30
# File 'service/records/records.rb', line 28

def sortable
  self
end

#sorterObject Also known as: ts

Returns sorter key needed for Timeline



33
34
35
# File 'service/records/records.rb', line 33

def sorter
  time
end