Class: Google::Apis::MybusinessV3::SpecialHours

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 a set of time periods when a location's operational hours differ from its normal business hours.

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) ⇒ SpecialHours

Returns a new instance of SpecialHours



1786
1787
1788
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1786

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

Instance Attribute Details

#special_hour_periodsArray<Google::Apis::MybusinessV3::SpecialHourPeriod>

A list of exceptions to the business's regular hours. Corresponds to the JSON property specialHourPeriods



1784
1785
1786
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1784

def special_hour_periods
  @special_hour_periods
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1791
1792
1793
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1791

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