Class: ForestLiana::ObjectiveStatGetter

Inherits:
ValueStatGetter show all
Defined in:
app/services/forest_liana/objective_stat_getter.rb

Instance Attribute Summary collapse

Attributes inherited from ValueStatGetter

#record

Attributes inherited from StatGetter

#record

Instance Method Summary collapse

Methods inherited from StatGetter

#initialize

Methods inherited from BaseGetter

#get_collection, #get_resource, #includes_for_serialization

Constructor Details

This class inherits a constructor from ForestLiana::StatGetter

Instance Attribute Details

#objectiveObject

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

#performObject



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