Class: Ossert::Project::BaseStore

Inherits:
Object
  • Object
show all
Defined in:
lib/ossert/project.rb

Direct Known Subclasses

Agility, Community

Instance Attribute Summary collapse

Instance Method Summary collapse

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_predictionObject

Returns the value of attribute quarter_prediction.



112
113
114
# File 'lib/ossert/project.rb', line 112

def quarter_prediction
  @quarter_prediction
end

#quartersObject

Returns the value of attribute quarters.



112
113
114
# File 'lib/ossert/project.rb', line 112

def quarters
  @quarters
end

#totalObject

Returns the value of attribute total.



112
113
114
# File 'lib/ossert/project.rb', line 112

def total
  @total
end

#total_predictionObject

Returns the value of attribute total_prediction.



112
113
114
# File 'lib/ossert/project.rb', line 112

def total_prediction
  @total_prediction
end