Class: Google::Apis::MybusinessbusinessinformationV1::MoreHours
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::MybusinessbusinessinformationV1::MoreHours
 
 
- 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
The time periods during which a location is open for certain types of business.
Instance Attribute Summary collapse
- 
  
    
      #hours_type_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #periods  ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::TimePeriod> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MoreHours 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of MoreHours.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ MoreHours
Returns a new instance of MoreHours.
      1072 1073 1074  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1072 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#hours_type_id ⇒ String
Required. Type of hours. Clients should call #link businessCategories:
BatchGet to get supported hours types for categories of their locations.
Corresponds to the JSON property hoursTypeId
      1064 1065 1066  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1064 def hours_type_id @hours_type_id end  | 
  
#periods ⇒ Array<Google::Apis::MybusinessbusinessinformationV1::TimePeriod>
Required. A collection of times that this location is open. Each period
represents a range of hours when the location is open during the week.
Corresponds to the JSON property periods
      1070 1071 1072  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1070 def periods @periods end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1077 1078 1079 1080  | 
    
      # File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1077 def update!(**args) @hours_type_id = args[:hours_type_id] if args.key?(:hours_type_id) @periods = args[:periods] if args.key?(:periods) end  |