Class: Google::Apis::MybusinessV3::BusinessHours
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::BusinessHours
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mybusiness_v3/classes.rb,
generated/google/apis/mybusiness_v3/representations.rb,
generated/google/apis/mybusiness_v3/representations.rb
Overview
Represents the time periods that this location is open for business. Holds a collection of TimePeriod instances.
Instance Attribute Summary collapse
-
#periods ⇒ Array<Google::Apis::MybusinessV3::TimePeriod>
A collection of times that this location is open for business.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BusinessHours
constructor
A new instance of BusinessHours.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BusinessHours
Returns a new instance of BusinessHours.
619 620 621 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 619 def initialize(**args) update!(**args) end |
Instance Attribute Details
#periods ⇒ Array<Google::Apis::MybusinessV3::TimePeriod>
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
617 618 619 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 617 def periods @periods end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
624 625 626 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 624 def update!(**args) @periods = args[:periods] if args.key?(:periods) end |