Class: Google::Apis::WalletobjectsV1::EventDateTime

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventDateTime

Returns a new instance of EventDateTime.



1375
1376
1377
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1375

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

Instance Attribute Details

#custom_doors_open_labelGoogle::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



1287
1288
1289
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1287

def custom_doors_open_label
  @custom_doors_open_label
end

#doors_openString

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

Returns:

  • (String)


1310
1311
1312
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1310

def doors_open
  @doors_open
end

#doors_open_labelString

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

Returns:

  • (String)


1320
1321
1322
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1320

def doors_open_label
  @doors_open_label
end

#endString

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

Returns:

  • (String)


1343
1344
1345
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1343

def end
  @end
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#eventDateTime". Corresponds to the JSON property kind

Returns:

  • (String)


1349
1350
1351
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1349

def kind
  @kind
end

#startString

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

Returns:

  • (String)


1373
1374
1375
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1373

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1380
1381
1382
1383
1384
1385
1386
1387
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1380

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