Class: FlexStationData::Presenters::PlateHash
- Inherits:
-
Object
- Object
- FlexStationData::Presenters::PlateHash
- Includes:
- Callable[:present]
- Defined in:
- lib/flex_station_data/presenters/plate_hash.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#plate ⇒ Object
readonly
Returns the value of attribute plate.
Instance Method Summary collapse
-
#initialize(plate, **options) ⇒ PlateHash
constructor
A new instance of PlateHash.
- #present ⇒ Object
Constructor Details
#initialize(plate, **options) ⇒ PlateHash
Returns a new instance of PlateHash.
14 15 16 17 |
# File 'lib/flex_station_data/presenters/plate_hash.rb', line 14 def initialize(plate, **) @plate = plate @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/flex_station_data/presenters/plate_hash.rb', line 10 def @options end |
#plate ⇒ Object (readonly)
Returns the value of attribute plate.
10 11 12 |
# File 'lib/flex_station_data/presenters/plate_hash.rb', line 10 def plate @plate end |
Instance Method Details
#present ⇒ Object
19 20 21 22 23 |
# File 'lib/flex_station_data/presenters/plate_hash.rb', line 19 def present samples.map do |sample| { "plate" => plate.label }.merge(SampleHash.present(times, sample, **)) end end |