Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint
- 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
Status changing points.
Instance Attribute Summary collapse
-
#date ⇒ Google::Apis::PlacesV1::GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday.
-
#date_deprecated ⇒ String
Output only.
-
#day ⇒ Fixnum
Output only.
-
#hour ⇒ Fixnum
Output only.
-
#minute ⇒ Fixnum
Output only.
-
#truncated ⇒ Boolean
(also: #truncated?)
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint
constructor
A new instance of GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint
Returns a new instance of GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint.
666 667 668 |
# File 'lib/google/apis/places_v1/classes.rb', line 666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ Google::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
633 634 635 |
# File 'lib/google/apis/places_v1/classes.rb', line 633 def date @date end |
#date_deprecated ⇒ String
Output only. Date of the endpoint expressed in RFC3339 format in the local
timezone for the place. For example 2010-12-31.
Corresponds to the JSON property dateDeprecated
639 640 641 |
# File 'lib/google/apis/places_v1/classes.rb', line 639 def date_deprecated @date_deprecated end |
#day ⇒ Fixnum
Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1
is Monday, etc.
Corresponds to the JSON property day
645 646 647 |
# File 'lib/google/apis/places_v1/classes.rb', line 645 def day @day end |
#hour ⇒ Fixnum
Output only. The hour in 2 digits. Ranges from 00 to 23.
Corresponds to the JSON property hour
650 651 652 |
# File 'lib/google/apis/places_v1/classes.rb', line 650 def hour @hour end |
#minute ⇒ Fixnum
Output only. The minute in 2 digits. Ranges from 00 to 59.
Corresponds to the JSON property minute
655 656 657 |
# File 'lib/google/apis/places_v1/classes.rb', line 655 def minute @minute end |
#truncated ⇒ Boolean Also known as: truncated?
Output only. Whether or not this endpoint was truncated. Truncation occurs
when the real hours are outside the times we are willing to return hours
between, so we truncate the hours back to these boundaries. This ensures that
at most 24 * 7 hours from midnight of the day of the request are returned.
Corresponds to the JSON property truncated
663 664 665 |
# File 'lib/google/apis/places_v1/classes.rb', line 663 def truncated @truncated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
671 672 673 674 675 676 677 678 |
# File 'lib/google/apis/places_v1/classes.rb', line 671 def update!(**args) @date = args[:date] if args.key?(:date) @date_deprecated = args[:date_deprecated] if args.key?(:date_deprecated) @day = args[:day] if args.key?(:day) @hour = args[:hour] if args.key?(:hour) @minute = args[:minute] if args.key?(:minute) @truncated = args[:truncated] if args.key?(:truncated) end |