Class: ForestLiana::StatGetter
- Inherits:
-
BaseGetter
- Object
- BaseGetter
- ForestLiana::StatGetter
- Defined in:
- app/services/forest_liana/stat_getter.rb
Direct Known Subclasses
LeaderboardStatGetter, LineStatGetter, PieStatGetter, ValueStatGetter
Instance Attribute Summary collapse
-
#record ⇒ Object
Returns the value of attribute record.
Instance Method Summary collapse
- #get_resource ⇒ Object
-
#initialize(resource, params, forest_user) ⇒ StatGetter
constructor
A new instance of StatGetter.
Methods inherited from BaseGetter
#get_collection, #includes_for_serialization
Constructor Details
#initialize(resource, params, forest_user) ⇒ StatGetter
Returns a new instance of StatGetter.
5 6 7 8 9 10 |
# File 'app/services/forest_liana/stat_getter.rb', line 5 def initialize(resource, params, forest_user) @resource = resource @params = params @user = forest_user compute_includes() end |
Instance Attribute Details
#record ⇒ Object
Returns the value of attribute record.
3 4 5 |
# File 'app/services/forest_liana/stat_getter.rb', line 3 def record @record end |
Instance Method Details
#get_resource ⇒ Object
12 13 14 15 |
# File 'app/services/forest_liana/stat_getter.rb', line 12 def get_resource super @resource.reorder('') end |