Class: Stats::Compute
- Inherits:
-
Object
- Object
- Stats::Compute
- Defined in:
- lib/stats/compute.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(params) ⇒ Compute
constructor
A new instance of Compute.
Constructor Details
#initialize(params) ⇒ Compute
Returns a new instance of Compute.
12 13 14 15 16 17 |
# File 'lib/stats/compute.rb', line 12 def initialize(params) @result = [] @file_name = params[:file] calculate self end |
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name.
9 10 11 |
# File 'lib/stats/compute.rb', line 9 def file_name @file_name end |
#result ⇒ Object
Returns the value of attribute result.
10 11 12 |
# File 'lib/stats/compute.rb', line 10 def result @result end |