Class: Availabiliter::InputFormatter
- Inherits:
-
Object
- Object
- Availabiliter::InputFormatter
- Defined in:
- lib/availabiliter/input_formatter.rb
Overview
Convert raw time slots to TimeSlot instances
Instance Attribute Summary collapse
-
#input_array ⇒ Object
readonly
Returns the value of attribute input_array.
-
#time_zone ⇒ Object
readonly
Returns the value of attribute time_zone.
Instance Method Summary collapse
-
#initialize(input_array:, time_zone:) ⇒ InputFormatter
constructor
A new instance of InputFormatter.
- #time_slots ⇒ Object
Constructor Details
#initialize(input_array:, time_zone:) ⇒ InputFormatter
Returns a new instance of InputFormatter.
8 9 10 11 |
# File 'lib/availabiliter/input_formatter.rb', line 8 def initialize(input_array:, time_zone:) @input_array = input_array @time_zone = time_zone end |
Instance Attribute Details
#input_array ⇒ Object (readonly)
Returns the value of attribute input_array.
6 7 8 |
# File 'lib/availabiliter/input_formatter.rb', line 6 def input_array @input_array end |
#time_zone ⇒ Object (readonly)
Returns the value of attribute time_zone.
6 7 8 |
# File 'lib/availabiliter/input_formatter.rb', line 6 def time_zone @time_zone end |