module FacebookGoogleCalendarSync::GoogleCalendarDescription
Constants
- DESCRIPTION_MIDDLE
- DESCRIPTION_PREFIX
- DESCRIPTION_SUFFIX
Public Instance Methods
create_description(last_known_event_update, now)
click to toggle source
# File lib/facebook_google_calendar_sync/google_calendar_description.rb, line 13 def create_description last_known_event_update, now "#{DESCRIPTION_PREFIX}#{last_known_event_update.to_s}#{DESCRIPTION_MIDDLE}#{now.to_s}#{DESCRIPTION_SUFFIX}" end
extract_last_modified_date(description)
click to toggle source
# File lib/facebook_google_calendar_sync/google_calendar_description.rb, line 9 def extract_last_modified_date description DateTime.strptime(description[DESCRIPTION_PREFIX.size..DESCRIPTION_PREFIX.size+25]) end