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


23
24
25
26
27
28
29
# File 'app/models/event/plate_events.rb', line 23

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

#fluidigm_stamp_dateObject


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

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


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

def gel_qc_date
  event_date('gel_analysed')
end

#pico_dateObject


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

def pico_date
  event_date('pico_analysed')
end

#qc_started_dateObject


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

def qc_started_date
  event_date('create_dilution_plate_purpose')
end

#sequenom_stamp_dateObject


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

def sequenom_stamp_date
  event_date('create_for_sequenom')
end