Class: SpreeCmCommissioner::EventChart

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EventChart.



5
6
7
8
9
# File 'app/serializables/spree_cm_commissioner/event_chart.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 (readonly)

Returns the value of attribute chart_type.



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

def chart_type
  @chart_type
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#product_chartsObject (readonly)

Returns the value of attribute product_charts.



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

def product_charts
  @product_charts
end