Class: ForestLiana::ObjectiveStatGetter
- Inherits:
-
ValueStatGetter
- Object
- BaseGetter
- StatGetter
- ValueStatGetter
- ForestLiana::ObjectiveStatGetter
- Defined in:
- app/services/forest_liana/objective_stat_getter.rb
Instance Attribute Summary collapse
-
#objective ⇒ Object
Returns the value of attribute objective.
Attributes inherited from ValueStatGetter
Attributes inherited from StatGetter
Instance Method Summary collapse
Methods inherited from StatGetter
#get_resource, #initialize, #validate_params
Methods inherited from BaseGetter
#get_collection, #get_resource, #includes_for_serialization
Constructor Details
This class inherits a constructor from ForestLiana::StatGetter
Instance Attribute Details
#objective ⇒ Object
Returns the value of attribute objective.
3 4 5 |
# File 'app/services/forest_liana/objective_stat_getter.rb', line 3 def objective @objective end |
Instance Method Details
#perform ⇒ Object
5 6 7 8 |
# File 'app/services/forest_liana/objective_stat_getter.rb', line 5 def perform super @record.value = { value: @record.value[:countCurrent] } end |