Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/motion_model/date_parser.rb

Instance Method Summary collapse

Instance Method Details

#to_dateObject

etc.



55
56
57
# File 'lib/motion_model/date_parser.rb', line 55

def to_date
  DateParser.parse_date(self)
end

#to_durationObject



63
64
65
# File 'lib/motion_model/date_parser.rb', line 63

def to_duration
  DateParser.parse_duration(self)
end

#to_timezoneObject



59
60
61
# File 'lib/motion_model/date_parser.rb', line 59

def to_timezone
  DateParser.parse_time_zone(self)
end