Class: Google::Apis::MybusinessbusinessinformationV1::BusinessHours
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::BusinessHours
- 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 the time periods that this location is open for business. Holds a collection of TimePeriod instances.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ BusinessHours
constructor
A new instance of BusinessHours.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BusinessHours
Returns a new instance of BusinessHours.
251 252 253 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 251 def initialize(**args) update!(**args) end |
Instance Attribute Details
#periods ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::TimePeriod>
Required. A collection of times that this location is open for business. Each
period represents a range of hours when the location is open during the week.
Corresponds to the JSON property periods
249 250 251 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 249 def periods @periods end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
256 257 258 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 256 def update!(**args) @periods = args[:periods] if args.key?(:periods) end |