Class: AmCharts::Graph
- Inherits:
-
Object
- Object
- AmCharts::Graph
- Includes:
- UsesSettings
- Defined in:
- lib/amcharts/graph.rb
Instance Attribute Summary collapse
-
#chart ⇒ Object
Returns the value of attribute chart.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value_field ⇒ Object
Returns the value of attribute value_field.
Attributes included from UsesSettings
Instance Method Summary collapse
-
#initialize(value_field, type) ⇒ Graph
constructor
A new instance of Graph.
Constructor Details
#initialize(value_field, type) ⇒ Graph
Returns a new instance of Graph.
8 9 10 11 12 |
# File 'lib/amcharts/graph.rb', line 8 def initialize(value_field, type) super @value_field = value_field @type = type end |
Instance Attribute Details
#chart ⇒ Object
Returns the value of attribute chart.
4 5 6 |
# File 'lib/amcharts/graph.rb', line 4 def chart @chart end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/amcharts/graph.rb', line 3 def type @type end |
#value_field ⇒ Object
Returns the value of attribute value_field.
3 4 5 |
# File 'lib/amcharts/graph.rb', line 3 def value_field @value_field end |