Class: Co2Filter::ContentBased::UserProfile
- Inherits:
-
HashWrapper
- Object
- HashWrapper
- Co2Filter::ContentBased::UserProfile
- Defined in:
- lib/co2_filter/content_based/user_profile.rb
Instance Attribute Summary collapse
-
#mean ⇒ Object
Returns the value of attribute mean.
Instance Method Summary collapse
-
#initialize(data, mean) ⇒ UserProfile
constructor
A new instance of UserProfile.
Methods inherited from HashWrapper
Constructor Details
#initialize(data, mean) ⇒ UserProfile
Returns a new instance of UserProfile.
4 5 6 7 |
# File 'lib/co2_filter/content_based/user_profile.rb', line 4 def initialize(data, mean) super(data) @mean = mean end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Co2Filter::HashWrapper
Instance Attribute Details
#mean ⇒ Object
Returns the value of attribute mean.
2 3 4 |
# File 'lib/co2_filter/content_based/user_profile.rb', line 2 def mean @mean end |