class Roxbury::EmptyWorkingHours

Null object version of WorkingHours for holidays and other non working days

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/roxbury/empty_working_hours.rb, line 4
def initialize
  super begins_at: 0, ends_at: 0
end

Public Instance Methods

ends_before?(_timestamp) click to toggle source
# File lib/roxbury/empty_working_hours.rb, line 16
def ends_before? _timestamp
  false
end
include?(_timestamp) click to toggle source
# File lib/roxbury/empty_working_hours.rb, line 8
def include? _timestamp
  false
end
non_working?() click to toggle source
# File lib/roxbury/empty_working_hours.rb, line 20
def non_working?
  true
end
starts_after?(_timestamp) click to toggle source
# File lib/roxbury/empty_working_hours.rb, line 12
def starts_after? _timestamp
  false
end