Class: Google::Apis::MybusinessbusinessinformationV1::MoreHours

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MoreHours

Returns a new instance of MoreHours.



1081
1082
1083
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1081

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#hours_type_idString

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

Returns:

  • (String)


1073
1074
1075
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1073

def hours_type_id
  @hours_type_id
end

#periodsArray<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



1079
1080
1081
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1079

def periods
  @periods
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1086
1087
1088
1089
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1086

def update!(**args)
  @hours_type_id = args[:hours_type_id] if args.key?(:hours_type_id)
  @periods = args[:periods] if args.key?(:periods)
end