Skip to content

class Tourmaline::BusinessOpeningHours
inherits Reference #

Describes the opening hours of a business.

Included modules

JSON::Serializable

Constructors#

.new(pull : JSON::PullParser) #

View source

.new(time_zone_name, opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval) = [] of Tourmaline::BusinessOpeningHoursInterval) #

View source

Methods#

#opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval) #

List of time intervals describing business opening hours

View source

#opening_hours=(opening_hours : Array(Tourmaline::BusinessOpeningHoursInterval)) #

List of time intervals describing business opening hours

View source

#time_zone_name : String #

Unique name of the time zone for which the opening hours are defined

View source

#time_zone_name=(time_zone_name : String) #

Unique name of the time zone for which the opening hours are defined

View source