Class: QppMeasureDataClient::Measures::Stratum
- Inherits:
-
Object
- Object
- QppMeasureDataClient::Measures::Stratum
- Defined in:
- lib/qpp_measure_data_client/measures/stratum.rb
Overview
Stratum class to convert provided hash into a Stratum object.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#eMeasureUuids ⇒ Object
Returns the value of attribute eMeasureUuids.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(stratum) ⇒ Stratum
constructor
Internal: Initialize assigning values to instance variables from the given hash.
Constructor Details
#initialize(stratum) ⇒ Stratum
Internal: Initialize assigning values to instance variables from the given hash.
stratum: A hash containing values for a Strata.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/qpp_measure_data_client/measures/stratum.rb', line 14 def initialize(stratum) @name = stratum[:name] @description = stratum[:description] @eMeasureUuids = if stratum[:eMeasureUuids].nil? nil else QppMeasureDataClient::Measures::EMeasureUuid.new( stratum[:eMeasureUuids].with_indifferent_access ) end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/stratum.rb', line 9 def description @description end |
#eMeasureUuids ⇒ Object
Returns the value of attribute eMeasureUuids.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/stratum.rb', line 9 def eMeasureUuids @eMeasureUuids end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/stratum.rb', line 9 def name @name end |