Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb

Overview

Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay

Returns a new instance of GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay.



2071
2072
2073
# File 'lib/google/apis/places_v1/classes.rb', line 2071

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

Instance Attribute Details

#dateGoogle::Apis::PlacesV1::GoogleTypeDate

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property date



2069
2070
2071
# File 'lib/google/apis/places_v1/classes.rb', line 2069

def date
  @date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2076
2077
2078
# File 'lib/google/apis/places_v1/classes.rb', line 2076

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