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.



573
574
575
# File 'lib/google/apis/places_v1/classes.rb', line 573

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

Instance Attribute Details

#closeGoogle::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points. Corresponds to the JSON property close



566
567
568
# File 'lib/google/apis/places_v1/classes.rb', line 566

def close
  @close
end

#openGoogle::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint

Status changing points. Corresponds to the JSON property open



571
572
573
# File 'lib/google/apis/places_v1/classes.rb', line 571

def open
  @open
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



578
579
580
581
# File 'lib/google/apis/places_v1/classes.rb', line 578

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