Class: SpreeCmCommissioner::ChartType

Inherits:
Object
  • Object
show all
Defined in:
app/models/spree_cm_commissioner/chart_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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

#nameObject (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