Class: SpreeCmCommissioner::ChartType
- Inherits:
-
Object
- Object
- SpreeCmCommissioner::ChartType
- Defined in:
- app/models/spree_cm_commissioner/chart_type.rb
Instance Attribute Summary collapse
-
#chart_type ⇒ Object
readonly
Returns the value of attribute chart_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(chart_type) ⇒ ChartType
constructor
A new instance of ChartType.
Constructor Details
#initialize(chart_type) ⇒ ChartType
Returns a new instance of ChartType.
5 6 7 8 |
# File 'app/models/spree_cm_commissioner/chart_type.rb', line 5 def initialize(chart_type) @chart_type = chart_type.to_s @name = @chart_type.humanize end |
Instance Attribute Details
#chart_type ⇒ Object (readonly)
Returns the value of attribute chart_type.
3 4 5 |
# File 'app/models/spree_cm_commissioner/chart_type.rb', line 3 def chart_type @chart_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'app/models/spree_cm_commissioner/chart_type.rb', line 3 def name @name end |