Class: GoogleCharts::Charts::Pie

Inherits:
Base
  • Object
show all
Defined in:
lib/google_charts/charts/pie.rb

Instance Method Summary collapse

Methods inherited from Base

#title, #to_html

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, options = {}, html_options = {} )
  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