Module: Event::PlateEvents

Included in:
Asset
Defined in:
app/models/event/plate_events.rb

Instance Method Summary collapse

Instance Method Details

#event_date(key) ⇒ Object



24
25
26
# File 'app/models/event/plate_events.rb', line 24

def event_date(key)
  events.loaded? ? event_from_object(key) : event_from_database(key)
end

#fluidigm_stamp_dateObject



19
20
21
22
# File 'app/models/event/plate_events.rb', line 19

def fluidigm_stamp_date
  event_key = PlatesHelper.event_family_for_pick(configatron.fetch(:sta_plate_purpose_name))
  event_date(event_key)
end

#gel_qc_dateObject



3
4
5
# File 'app/models/event/plate_events.rb', line 3

def gel_qc_date
  event_date('gel_analysed')
end

#pico_dateObject



7
8
9
# File 'app/models/event/plate_events.rb', line 7

def pico_date
  event_date('pico_analysed')
end

#qc_started_dateObject



11
12
13
# File 'app/models/event/plate_events.rb', line 11

def qc_started_date
  event_date('create_dilution_plate_purpose')
end

#sequenom_stamp_dateObject



15
16
17
# File 'app/models/event/plate_events.rb', line 15

def sequenom_stamp_date
  event_date('create_for_sequenom')
end