Class: Api::RequestIO::WarehouseAsset
- Inherits:
-
Object
- Object
- Api::RequestIO::WarehouseAsset
- Defined in:
- app/models/api/request_io.rb
Overview
Maintains the pre-existing identifiers
Instance Attribute Summary collapse
-
#asset ⇒ Object
readonly
Returns the value of attribute asset.
Instance Method Summary collapse
-
#initialize(asset) ⇒ WarehouseAsset
constructor
A new instance of WarehouseAsset.
- #two_dimensional_barcode ⇒ Object
Constructor Details
#initialize(asset) ⇒ WarehouseAsset
Returns a new instance of WarehouseAsset.
48 49 50 |
# File 'app/models/api/request_io.rb', line 48 def initialize(asset) @asset = asset.is_a?(Well) ? asset : asset.try(:labware) end |
Instance Attribute Details
#asset ⇒ Object (readonly)
Returns the value of attribute asset
46 47 48 |
# File 'app/models/api/request_io.rb', line 46 def asset @asset end |
Instance Method Details
#two_dimensional_barcode ⇒ Object
52 53 54 |
# File 'app/models/api/request_io.rb', line 52 def @asset. if @asset.respond_to?(:two_dimensional_barcode) end |