Class: Google::Apis::MybusinessbusinessinformationV1::BusinessHours

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

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

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

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