Class: QppMeasureDataClient::Measures::Measure
- Inherits:
-
Object
- Object
- QppMeasureDataClient::Measures::Measure
- Defined in:
- lib/qpp_measure_data_client/measures/measure.rb
Overview
Measure class to convert provided hash into a Measure object.
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#cehrtEligible ⇒ Object
Returns the value of attribute cehrtEligible.
-
#description ⇒ Object
Returns the value of attribute description.
-
#eMeasureId ⇒ Object
Returns the value of attribute eMeasureId.
-
#exclusion ⇒ Object
Returns the value of attribute exclusion.
-
#firstPerformanceYear ⇒ Object
Returns the value of attribute firstPerformanceYear.
-
#isBonus ⇒ Object
Returns the value of attribute isBonus.
-
#isHighPriority ⇒ Object
Returns the value of attribute isHighPriority.
-
#isInverse ⇒ Object
Returns the value of attribute isInverse.
-
#isRegistryMeasure ⇒ Object
Returns the value of attribute isRegistryMeasure.
-
#isRequired ⇒ Object
Returns the value of attribute isRequired.
-
#isRiskAdjusted ⇒ Object
Returns the value of attribute isRiskAdjusted.
-
#lastPerformanceYear ⇒ Object
Returns the value of attribute lastPerformanceYear.
-
#measureId ⇒ Object
Returns the value of attribute measureId.
-
#measureSets ⇒ Object
Returns the value of attribute measureSets.
-
#measureType ⇒ Object
Returns the value of attribute measureType.
-
#metricType ⇒ Object
Returns the value of attribute metricType.
-
#nationalQualityStrategyDomain ⇒ Object
Returns the value of attribute nationalQualityStrategyDomain.
-
#nqfEMeasureId ⇒ Object
Returns the value of attribute nqfEMeasureId.
-
#nqfId ⇒ Object
Returns the value of attribute nqfId.
-
#objective ⇒ Object
Returns the value of attribute objective.
-
#overallAlgorithm ⇒ Object
Returns the value of attribute overallAlgorithm.
-
#preprod ⇒ Object
Returns the value of attribute preprod.
-
#primarySteward ⇒ Object
Returns the value of attribute primarySteward.
-
#reportingCategory ⇒ Object
Returns the value of attribute reportingCategory.
-
#strata ⇒ Object
Returns the value of attribute strata.
-
#subcategoryId ⇒ Object
Returns the value of attribute subcategoryId.
-
#submissionMethods ⇒ Object
Returns the value of attribute submissionMethods.
-
#substitutes ⇒ Object
Returns the value of attribute substitutes.
-
#title ⇒ Object
Returns the value of attribute title.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(measure) ⇒ Measure
constructor
Internal: Initialize assigning values to instance variables from the given hash.
Constructor Details
#initialize(measure) ⇒ Measure
Internal: Initialize assigning values to instance variables from the given hash.
measure: A hash containing values for a Measure.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 44 def initialize(measure) @category = measure[:category] @cehrtEligible = measure[:cehrtEligible] @description = measure[:description] @eMeasureId = measure[:eMeasureId] @firstPerformanceYear = measure[:firstPerformanceYear] @isBonus = measure[:isBonus] @isHighPriority = measure[:isHighPriority] @isInverse = measure[:isInverse] @isRiskAdjusted = measure[:isRiskAdjusted] @isRequired = measure[:isRequired] @isRegistryMeasure = measure[:isRegistryMeasure] @lastPerformanceYear = measure[:lastPerformanceYear] @measureId = measure[:measureId] @measureType = measure[:measureType] @metricType = measure[:metricType] @nationalQualityStrategyDomain = measure[:nationalQualityStrategyDomain] @nqfEMeasureId = measure[:nqfEMeasureId] @nqfId = measure[:nqfId] @objective = measure[:objective] @overallAlgorithm = measure[:overallAlgorithm] @primarySteward = measure[:primarySteward] @preprod = measure[:preprod] || [] @reportingCategory = measure[:reportingCategory] @subcategoryId = measure[:subcategoryId] @title = measure[:title] @exclusion = measure[:exclusion] @weight = measure[:weight] @measureSets = measure[:measureSets].nil? ? [] : measure[:measureSets] @strata = if measure[:strata].nil? [] else measure[:strata].map do |strata| QppMeasureDataClient::Measures::Stratum.new(strata.with_indifferent_access) end end @substitutes = measure[:substitutes].nil? ? [] : measure[:substitutes] @submissionMethods = measure[:submissionMethods].nil? ? [] : measure[:submissionMethods] end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def category @category end |
#cehrtEligible ⇒ Object
Returns the value of attribute cehrtEligible.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def cehrtEligible @cehrtEligible end |
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def description @description end |
#eMeasureId ⇒ Object
Returns the value of attribute eMeasureId.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def eMeasureId @eMeasureId end |
#exclusion ⇒ Object
Returns the value of attribute exclusion.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def exclusion @exclusion end |
#firstPerformanceYear ⇒ Object
Returns the value of attribute firstPerformanceYear.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def firstPerformanceYear @firstPerformanceYear end |
#isBonus ⇒ Object
Returns the value of attribute isBonus.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def isBonus @isBonus end |
#isHighPriority ⇒ Object
Returns the value of attribute isHighPriority.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def isHighPriority @isHighPriority end |
#isInverse ⇒ Object
Returns the value of attribute isInverse.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def isInverse @isInverse end |
#isRegistryMeasure ⇒ Object
Returns the value of attribute isRegistryMeasure.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def isRegistryMeasure @isRegistryMeasure end |
#isRequired ⇒ Object
Returns the value of attribute isRequired.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def isRequired @isRequired end |
#isRiskAdjusted ⇒ Object
Returns the value of attribute isRiskAdjusted.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def isRiskAdjusted @isRiskAdjusted end |
#lastPerformanceYear ⇒ Object
Returns the value of attribute lastPerformanceYear.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def lastPerformanceYear @lastPerformanceYear end |
#measureId ⇒ Object
Returns the value of attribute measureId.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def measureId @measureId end |
#measureSets ⇒ Object
Returns the value of attribute measureSets.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def measureSets @measureSets end |
#measureType ⇒ Object
Returns the value of attribute measureType.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def measureType @measureType end |
#metricType ⇒ Object
Returns the value of attribute metricType.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def metricType @metricType end |
#nationalQualityStrategyDomain ⇒ Object
Returns the value of attribute nationalQualityStrategyDomain.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def nationalQualityStrategyDomain @nationalQualityStrategyDomain end |
#nqfEMeasureId ⇒ Object
Returns the value of attribute nqfEMeasureId.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def nqfEMeasureId @nqfEMeasureId end |
#nqfId ⇒ Object
Returns the value of attribute nqfId.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def nqfId @nqfId end |
#objective ⇒ Object
Returns the value of attribute objective.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def objective @objective end |
#overallAlgorithm ⇒ Object
Returns the value of attribute overallAlgorithm.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def overallAlgorithm @overallAlgorithm end |
#preprod ⇒ Object
Returns the value of attribute preprod.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def preprod @preprod end |
#primarySteward ⇒ Object
Returns the value of attribute primarySteward.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def primarySteward @primarySteward end |
#reportingCategory ⇒ Object
Returns the value of attribute reportingCategory.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def reportingCategory @reportingCategory end |
#strata ⇒ Object
Returns the value of attribute strata.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def strata @strata end |
#subcategoryId ⇒ Object
Returns the value of attribute subcategoryId.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def subcategoryId @subcategoryId end |
#submissionMethods ⇒ Object
Returns the value of attribute submissionMethods.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def submissionMethods @submissionMethods end |
#substitutes ⇒ Object
Returns the value of attribute substitutes.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def substitutes @substitutes end |
#title ⇒ Object
Returns the value of attribute title.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def title @title end |
#weight ⇒ Object
Returns the value of attribute weight.
9 10 11 |
# File 'lib/qpp_measure_data_client/measures/measure.rb', line 9 def weight @weight end |