Module: ChartingUi::Chartable::ClassMethods

Defined in:
lib/charting_ui/chartable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#charting_ui_available_methodsObject

Returns the value of attribute charting_ui_available_methods.



9
10
11
# File 'lib/charting_ui/chartable.rb', line 9

def charting_ui_available_methods
  @charting_ui_available_methods
end

Instance Method Details

#acts_as_chartable(*queries) ⇒ Object



11
12
13
14
# File 'lib/charting_ui/chartable.rb', line 11

def acts_as_chartable(*queries)
	cattr_accessor :charting_ui_available_methods
	self.charting_ui_available_methods = queries.map(&:to_s)
end