Class: AmCharts::DataSource

Inherits:
Settings show all
Defined in:
lib/amcharts/data_source.rb

Instance Method Summary collapse

Methods inherited from Settings

#function, #initialize, #literal, #method_missing, #to_h

Constructor Details

This class inherits a constructor from AmCharts::Settings

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AmCharts::Settings

Instance Method Details

#defer!Object



5
6
7
# File 'lib/amcharts/data_source.rb', line 5

def defer!
  self.defer = true
end

#paramsObject



9
10
11
# File 'lib/amcharts/data_source.rb', line 9

def params
  @settings[:params] ||= {}
end

#params=(params) ⇒ Object



13
14
15
# File 'lib/amcharts/data_source.rb', line 13

def params=(params)
  self.params.merge!(params)
end