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.



1909
1910
1911
# File 'lib/google/apis/places_v1/classes.rb', line 1909

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

Instance Attribute Details

#closeGoogle::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points. Corresponds to the JSON property close



1902
1903
1904
# File 'lib/google/apis/places_v1/classes.rb', line 1902

def close
  @close
end

#openGoogle::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points. Corresponds to the JSON property open



1907
1908
1909
# File 'lib/google/apis/places_v1/classes.rb', line 1907

def open
  @open
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1914
1915
1916
1917
# File 'lib/google/apis/places_v1/classes.rb', line 1914

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