Class: Moov::Models::Components::ScheduleWindow
- Inherits:
-
Object
- Object
- Moov::Models::Components::ScheduleWindow
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/schedulewindow.rb
Overview
A window of time during which the card may authorize.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(days:, start_time:, end_time:) ⇒ ScheduleWindow
constructor
A new instance of ScheduleWindow.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(days:, start_time:, end_time:) ⇒ ScheduleWindow
Returns a new instance of ScheduleWindow.
23 24 25 26 27 |
# File 'lib/moov/models/components/schedulewindow.rb', line 23 def initialize(days:, start_time:, end_time:) @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/schedulewindow.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 |