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



685
686
687
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 685

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



683
684
685
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 683

def special_hour_periods
  @special_hour_periods
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



690
691
692
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 690

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