Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriod

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

A period the place remains in open_now status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceOpeningHoursPeriod

Returns a new instance of GoogleMapsPlacesV1PlaceOpeningHoursPeriod.



2207
2208
2209
# File 'lib/google/apis/places_v1/classes.rb', line 2207

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

Instance Attribute Details

#closeGoogle::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points. Corresponds to the JSON property close



2200
2201
2202
# File 'lib/google/apis/places_v1/classes.rb', line 2200

def close
  @close
end

#openGoogle::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points. Corresponds to the JSON property open



2205
2206
2207
# File 'lib/google/apis/places_v1/classes.rb', line 2205

def open
  @open
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2212
2213
2214
2215
# File 'lib/google/apis/places_v1/classes.rb', line 2212

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