Module: ModelToGooglesheet::ClassMethods

Defined in:
lib/model_to_googlesheet.rb

Instance Method Summary collapse

Instance Method Details

#exportable_to_googlesheet(options = {}) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/model_to_googlesheet.rb', line 14

def exportable_to_googlesheet options={}
	mattr_accessor :model_to_googlesheet_configuration
	self.model_to_googlesheet_configuration = ModelToGooglesheet.configuration #here we are initializing permodel configuration with perapp configuration

	options.each do |k, v|
		self.model_to_googlesheet_configuration.send("#{k}=", v) 
	end #unfamiliar option will raise an error

	include ModelToGooglesheet::Export
end