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