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.
45 46 47 |
# File 'app/models/api/request_io.rb', line 45 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.
43 44 45 |
# File 'app/models/api/request_io.rb', line 43 def asset @asset end |
Instance Method Details
#two_dimensional_barcode ⇒ Object
49 50 51 |
# File 'app/models/api/request_io.rb', line 49 def @asset. if @asset.respond_to?(:two_dimensional_barcode) end |