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.



1687
1688
1689
# File 'lib/google/apis/places_v1/classes.rb', line 1687

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

Instance Attribute Details

#closeGoogle::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points. Corresponds to the JSON property close



1680
1681
1682
# File 'lib/google/apis/places_v1/classes.rb', line 1680

def close
  @close
end

#openGoogle::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points. Corresponds to the JSON property open



1685
1686
1687
# File 'lib/google/apis/places_v1/classes.rb', line 1685

def open
  @open
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1692
1693
1694
1695
# File 'lib/google/apis/places_v1/classes.rb', line 1692

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