Module: AssetRefactor::Labware::Methods

Extended by:
ActiveSupport::Concern
Included in:
Lane::Labware, Plate, Tube
Defined in:
app/models/asset_refactor/labware.rb

Overview

Labware specific methods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#storage_location_serviceObject (readonly)

Returns the value of attribute storage_location_service


25
26
27
# File 'app/models/asset_refactor/labware.rb', line 25

def storage_location_service
  @storage_location_service
end

Instance Method Details

#labwareObject

Labware reflects the physical piece of plastic corresponding to an asset


32
33
34
# File 'app/models/asset_refactor/labware.rb', line 32

def labware
  self
end

#labwhere_locationObject


27
28
29
# File 'app/models/asset_refactor/labware.rb', line 27

def labwhere_location
  @labwhere_location ||= lookup_labwhere_location
end

#scanned_in_dateObject


40
41
42
# File 'app/models/asset_refactor/labware.rb', line 40

def scanned_in_date
  scanned_into_lab_event.try(:content) || ''
end

#storage_locationObject


36
37
38
# File 'app/models/asset_refactor/labware.rb', line 36

def storage_location
  @storage_location ||= obtain_storage_location
end