module ModelToGooglesheet::ClassMethods
Public Instance Methods
exportable_to_googlesheet(options={})
click to toggle source
# 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