Class: GoogleCharts::Charts::Line
- Defined in:
- lib/google_charts/charts/line.rb
Instance Method Summary collapse
-
#initialize(template, collection, options = {}, html_options = {}) ⇒ Line
constructor
A new instance of Line.
- #label(name, method) ⇒ Object
- #value(name, method) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(template, collection, options = {}, html_options = {}) ⇒ Line
Returns a new instance of Line.
4 5 6 7 8 |
# File 'lib/google_charts/charts/line.rb', line 4 def initialize( template, collection, = {}, = {} ) super @label, @values = [], [] end |
Instance Method Details
#label(name, method) ⇒ Object
10 |
# File 'lib/google_charts/charts/line.rb', line 10 def label( name, method ); @label = [name, method]; end |
#value(name, method) ⇒ Object
11 |
# File 'lib/google_charts/charts/line.rb', line 11 def value( name, method ); @values << [name, method]; end |