module AddToGoogleCal::ClassMethods
Public Instance Methods
has_google_cal(options = {})
click to toggle source
Options Example (in your model):
has_google_cal { summary_field: 'event_name' }
# File lib/add_to_google_cal.rb, line 16 def has_google_cal(options = {}) cattr_accessor :summary_field, :dtstart_field, :dtend_field self.dtstart_field = (options[:dtstart_field] || :dtstart).to_s self.dtend_field = (options[:dtend_field] || :dtend).to_s self.summary_field = (options[:summary_field] || :summary).to_s include AddToGoogleCal::InstanceMethods end