Class: SmartChart::DataSet
- Inherits:
-
Object
- Object
- SmartChart::DataSet
- Defined in:
- lib/smart_chart/data_set.rb
Instance Attribute Summary collapse
-
#style ⇒ Object
Returns the value of attribute style.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(values, style) ⇒ DataSet
constructor
A new instance of DataSet.
- #to_s ⇒ Object
Constructor Details
#initialize(values, style) ⇒ DataSet
Returns a new instance of DataSet.
6 7 8 9 |
# File 'lib/smart_chart/data_set.rb', line 6 def initialize(values, style) self.values = values self.style = style end |
Instance Attribute Details
#style ⇒ Object
Returns the value of attribute style.
4 5 6 |
# File 'lib/smart_chart/data_set.rb', line 4 def style @style end |
#values ⇒ Object
Returns the value of attribute values.
4 5 6 |
# File 'lib/smart_chart/data_set.rb', line 4 def values @values end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/smart_chart/data_set.rb', line 11 def to_s Encoder::Simple.new(values).to_s end |