Class: Google::Apis::MybusinessV3::BusinessHours

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

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