Class: Google::Apis::MybusinessbusinessinformationV1::SpecialHours
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::SpecialHours
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb
Overview
Represents a set of time periods when a location's operational hours differ from its normal business hours.
Instance Attribute Summary collapse
-
#special_hour_periods ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::SpecialHourPeriod>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpecialHours
constructor
A new instance of SpecialHours.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpecialHours
Returns a new instance of SpecialHours.
1742 1743 1744 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1742 def initialize(**args) update!(**args) end |
Instance Attribute Details
#special_hour_periods ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::SpecialHourPeriod>
Required. A list of exceptions to the business's regular hours.
Corresponds to the JSON property specialHourPeriods
1740 1741 1742 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1740 def special_hour_periods @special_hour_periods end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1747 1748 1749 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1747 def update!(**args) @special_hour_periods = args[:special_hour_periods] if args.key?(:special_hour_periods) end |