class Tempo::DifferentDaysError
Public Class Methods
new(start_time, end_time)
click to toggle source
# File lib/tempo/exceptions.rb, line 63 def initialize(start_time, end_time) @start_time = (start_time.kind_of? Time) ? start_time.strftime('%H:%M on %b %d, %Y') : start_time.to_s @end_time = (end_time.kind_of? Time) ? end_time.strftime('%H:%M on %b %d, %Y') : end_time.to_s @message = "End time must be on the same day as start time: #{start_time} : #{end_time}" end
Public Instance Methods
to_s()
click to toggle source
# File lib/tempo/exceptions.rb, line 69 def to_s @message end