Class: Google::Apis::WalletobjectsV1::EventDateTime
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::EventDateTime
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Instance Attribute Summary collapse
-
#custom_doors_open_label ⇒ Google::Apis::WalletobjectsV1::LocalizedString
A custom label to use for the doors open value (
doorsOpen
) on the card detail view. -
#doors_open ⇒ String
The date/time when the doors open at the venue.
-
#doors_open_label ⇒ String
The label to use for the doors open value (
doorsOpen
) on the card detail view. -
#end ⇒ String
The date/time when the event ends.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#start ⇒ String
The date/time when the event starts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventDateTime
constructor
A new instance of EventDateTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventDateTime
Returns a new instance of EventDateTime.
1360 1361 1362 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1360 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_doors_open_label ⇒ Google::Apis::WalletobjectsV1::LocalizedString
A custom label to use for the doors open value (doorsOpen
) on the card
detail view. This should only be used if the default "Doors Open" label or one
of the doorsOpenLabel
options is not sufficient. Both doorsOpenLabel
and
customDoorsOpenLabel
may not be set. If neither is set, the label will
default to "Doors Open", localized. If the doors open field is unset, this
label will not be used.
Corresponds to the JSON property customDoorsOpenLabel
1272 1273 1274 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1272 def custom_doors_open_label @custom_doors_open_label end |
#doors_open ⇒ String
The date/time when the doors open at the venue. This is an ISO 8601 extended
format date/time, with or without an offset. Time may be specified up to
nanosecond precision. Offsets may be specified with seconds precision (even
though offset seconds is not part of ISO 8601). For example: 1985-04-12T23:20:
50.52Z
would be 20 minutes and 50.52 seconds after the 23rd hour of April
12th, 1985 in UTC. 1985-04-12T19:20:50.52-04:00
would be 20 minutes and 50.
52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same
instant in time as the above example). If the event were in New York, this
would be the equivalent of Eastern Daylight Time (EDT). Remember that offset
varies in regions that observe Daylight Saving Time (or Summer Time),
depending on the time of the year. 1985-04-12T19:20:50.52
would be 20
minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no
offset information. The portion of the date/time without the offset is
considered the "local date/time". This should be the local date/time at the
venue. For example, if the event occurs at the 20th hour of June 5th, 2018 at
the venue, the local date/time portion should be 2018-06-05T20:00:00
. If the
local date/time at the venue is 4 hours before UTC, an offset of -04:00
may
be appended. Without offset information, some rich features may not be
available.
Corresponds to the JSON property doorsOpen
1295 1296 1297 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1295 def doors_open @doors_open end |
#doors_open_label ⇒ String
The label to use for the doors open value (doorsOpen
) on the card detail
view. Each available option maps to a set of localized strings, so that
translations are shown to the user based on their locale. Both doorsOpenLabel
and customDoorsOpenLabel
may not be set. If neither is set, the label will
default to "Doors Open", localized. If the doors open field is unset, this
label will not be used.
Corresponds to the JSON property doorsOpenLabel
1305 1306 1307 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1305 def doors_open_label @doors_open_label end |
#end ⇒ String
The date/time when the event ends. If the event spans multiple days, it should
be the end date/time on the last day. This is an ISO 8601 extended format date/
time, with or without an offset. Time may be specified up to nanosecond
precision. Offsets may be specified with seconds precision (even though offset
seconds is not part of ISO 8601). For example: 1985-04-12T23:20:50.52Z
would
be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC.
1985-04-12T19:20:50.52-04:00
would be 20 minutes and 50.52 seconds after
the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as
the above example). If the event were in New York, this would be the
equivalent of Eastern Daylight Time (EDT). Remember that offset varies in
regions that observe Daylight Saving Time (or Summer Time), depending on the
time of the year. 1985-04-12T19:20:50.52
would be 20 minutes and 50.52
seconds after the 19th hour of April 12th, 1985 with no offset information.
The portion of the date/time without the offset is considered the "local date/
time". This should be the local date/time at the venue. For example, if the
event occurs at the 20th hour of June 5th, 2018 at the venue, the local date/
time portion should be 2018-06-05T20:00:00
. If the local date/time at the
venue is 4 hours before UTC, an offset of -04:00
may be appended. Without
offset information, some rich features may not be available.
Corresponds to the JSON property end
1328 1329 1330 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1328 def end @end end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#eventDateTime"
.
Corresponds to the JSON property kind
1334 1335 1336 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1334 def kind @kind end |
#start ⇒ String
The date/time when the event starts. If the event spans multiple days, it
should be the start date/time on the first day. This is an ISO 8601 extended
format date/time, with or without an offset. Time may be specified up to
nanosecond precision. Offsets may be specified with seconds precision (even
though offset seconds is not part of ISO 8601). For example: 1985-04-12T23:20:
50.52Z
would be 20 minutes and 50.52 seconds after the 23rd hour of April
12th, 1985 in UTC. 1985-04-12T19:20:50.52-04:00
would be 20 minutes and 50.
52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same
instant in time as the above example). If the event were in New York, this
would be the equivalent of Eastern Daylight Time (EDT). Remember that offset
varies in regions that observe Daylight Saving Time (or Summer Time),
depending on the time of the year. 1985-04-12T19:20:50.52
would be 20
minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no
offset information. The portion of the date/time without the offset is
considered the "local date/time". This should be the local date/time at the
venue. For example, if the event occurs at the 20th hour of June 5th, 2018 at
the venue, the local date/time portion should be 2018-06-05T20:00:00
. If the
local date/time at the venue is 4 hours before UTC, an offset of -04:00
may
be appended. Without offset information, some rich features may not be
available.
Corresponds to the JSON property start
1358 1359 1360 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1358 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1365 1366 1367 1368 1369 1370 1371 1372 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1365 def update!(**args) @custom_doors_open_label = args[:custom_doors_open_label] if args.key?(:custom_doors_open_label) @doors_open = args[:doors_open] if args.key?(:doors_open) @doors_open_label = args[:doors_open_label] if args.key?(:doors_open_label) @end = args[:end] if args.key?(:end) @kind = args[:kind] if args.key?(:kind) @start = args[:start] if args.key?(:start) end |