Class: Co2Filter::ContentBased::UserProfile

Inherits:
HashWrapper
  • Object
show all
Defined in:
lib/co2_filter/content_based/user_profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from HashWrapper

#method_missing, #to_hash

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

#meanObject

Returns the value of attribute mean.



2
3
4
# File 'lib/co2_filter/content_based/user_profile.rb', line 2

def mean
  @mean
end