Class: SpreeCmCommissioner::PieChartEventAggregator

Inherits:
Object
  • Object
show all
Defined in:
app/serializables/spree_cm_commissioner/pie_chart_event_aggregator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, chart_type:, product_charts:) ⇒ PieChartEventAggregator

Returns a new instance of PieChartEventAggregator.



5
6
7
8
9
# File 'app/serializables/spree_cm_commissioner/pie_chart_event_aggregator.rb', line 5

def initialize(id:, chart_type:, product_charts:)
  @id = id
  @chart_type = chart_type
  @product_charts = product_charts
end

Instance Attribute Details

#chart_typeObject

Returns the value of attribute chart_type.



3
4
5
# File 'app/serializables/spree_cm_commissioner/pie_chart_event_aggregator.rb', line 3

def chart_type
  @chart_type
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'app/serializables/spree_cm_commissioner/pie_chart_event_aggregator.rb', line 3

def id
  @id
end

#product_chartsObject

Returns the value of attribute product_charts.



3
4
5
# File 'app/serializables/spree_cm_commissioner/pie_chart_event_aggregator.rb', line 3

def product_charts
  @product_charts
end