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
| 460 461 462 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 460 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
| 458 459 460 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 458 def periods @periods end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 465 466 467 | # File 'generated/google/apis/mybusiness_v3/classes.rb', line 465 def update!(**args) @periods = args[:periods] if args.key?(:periods) end |