Class: SpreeCmCommissioner::EventChart
- Inherits:
-
Object
- Object
- SpreeCmCommissioner::EventChart
- Defined in:
- app/serializables/spree_cm_commissioner/event_chart.rb
Instance Attribute Summary collapse
-
#chart_type ⇒ Object
readonly
Returns the value of attribute chart_type.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#product_charts ⇒ Object
readonly
Returns the value of attribute product_charts.
Instance Method Summary collapse
-
#initialize(id:, chart_type:, product_charts:) ⇒ EventChart
constructor
A new instance of EventChart.
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_type ⇒ Object (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 |
#id ⇒ Object (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_charts ⇒ Object (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 |