Class: Ossert::Project::BaseStore
- Inherits:
-
Object
- Object
- Ossert::Project::BaseStore
- Defined in:
- lib/ossert/project.rb
Instance Attribute Summary collapse
-
#quarter_prediction ⇒ Object
Returns the value of attribute quarter_prediction.
-
#quarters ⇒ Object
Returns the value of attribute quarters.
-
#total ⇒ Object
Returns the value of attribute total.
-
#total_prediction ⇒ Object
Returns the value of attribute total_prediction.
Instance Method Summary collapse
-
#initialize(quarters: nil, total: nil) ⇒ BaseStore
constructor
A new instance of BaseStore.
Constructor Details
#initialize(quarters: nil, total: nil) ⇒ BaseStore
Returns a new instance of BaseStore.
114 115 116 117 |
# File 'lib/ossert/project.rb', line 114 def initialize(quarters: nil, total: nil) @quarters = quarters || QuartersStore.new(self.class.quarter_stats_klass_name) @total = total || ::Kernel.const_get(self.class.total_stats_klass_name).new end |
Instance Attribute Details
#quarter_prediction ⇒ Object
Returns the value of attribute quarter_prediction.
112 113 114 |
# File 'lib/ossert/project.rb', line 112 def quarter_prediction @quarter_prediction end |
#quarters ⇒ Object
Returns the value of attribute quarters.
112 113 114 |
# File 'lib/ossert/project.rb', line 112 def quarters @quarters end |
#total ⇒ Object
Returns the value of attribute total.
112 113 114 |
# File 'lib/ossert/project.rb', line 112 def total @total end |
#total_prediction ⇒ Object
Returns the value of attribute total_prediction.
112 113 114 |
# File 'lib/ossert/project.rb', line 112 def total_prediction @total_prediction end |