Module: AddToGoogleCal::ClassMethods
- Defined in:
- lib/add_to_google_cal.rb
Instance Method Summary collapse
-
#has_google_cal(options = {}) ⇒ Object
Options Example (in your model): has_google_cal { summary_field: ‘event_name’ }.
Instance Method Details
#has_google_cal(options = {}) ⇒ Object
Options Example (in your model):
has_google_cal { summary_field: 'event_name' }
16 17 18 19 20 21 22 23 |
# File 'lib/add_to_google_cal.rb', line 16 def has_google_cal( = {}) cattr_accessor :summary_field, :dtstart_field, :dtend_field self.dtstart_field = ([:dtstart_field] || :dtstart).to_s self.dtend_field = ([:dtend_field] || :dtend).to_s self.summary_field = ([:summary_field] || :summary).to_s include AddToGoogleCal::InstanceMethods end |