Class: Moov::Models::Components::ScheduleWindowError

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/schedulewindowerror.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(days: nil, start_time: nil, end_time: nil) ⇒ ScheduleWindowError

Returns a new instance of ScheduleWindowError.



23
24
25
26
27
# File 'lib/moov/models/components/schedulewindowerror.rb', line 23

def initialize(days: nil, start_time: nil, end_time: nil)
  @days = days
  @start_time = start_time
  @end_time = end_time
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/moov/models/components/schedulewindowerror.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @days == other.days
  return false unless @start_time == other.start_time
  return false unless @end_time == other.end_time
  true
end