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.



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_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



1272
1273
1274
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1272

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)


1295
1296
1297
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1295

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)


1305
1306
1307
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1305

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)


1328
1329
1330
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1328

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)


1334
1335
1336
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1334

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)


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