class Tourmaline::BusinessOpeningHours
 
  - Tourmaline::BusinessOpeningHours
 - Reference
 - Object
 
Overview
Describes the opening hours of a business.
Included Modules
- JSON::Serializable
 
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
 - .new(time_zone_name : String, opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval) = [] of Tourmaline::BusinessOpeningHoursInterval)
 
Instance Method Summary
- 
        #opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval)
        
          
List of time intervals describing business opening hours
 - 
        #opening_hours=(opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval))
        
          
List of time intervals describing business opening hours
 - 
        #time_zone_name : String
        
          
Unique name of the time zone for which the opening hours are defined
 - 
        #time_zone_name=(time_zone_name : String)
        
          
Unique name of the time zone for which the opening hours are defined
 
Constructor Detail
        
        def self.new(time_zone_name : String, opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval) = [] of Tourmaline::BusinessOpeningHoursInterval)
        #
      
      
      Instance Method Detail
        
        def opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval)
        #
      
      
        List of time intervals describing business opening hours
        
        def opening_hours=(opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval))
        #
      
      
        List of time intervals describing business opening hours
        
        def time_zone_name=(time_zone_name : String)
        #
      
      
        Unique name of the time zone for which the opening hours are defined