class Google::Apis::GamesV1::EventDefinition

This is a JSON template for an event definition resource.

Attributes

child_events[RW]

A list of events that are a child of this event. Corresponds to the JSON property `childEvents` @return [Array<Google::Apis::GamesV1::EventChild>]

description[RW]

Description of what this event represents. Corresponds to the JSON property `description` @return [String]

display_name[RW]

The name to display for the event. Corresponds to the JSON property `displayName` @return [String]

id[RW]

The ID of the event. Corresponds to the JSON property `id` @return [String]

image_url[RW]

The base URL for the image that represents the event. Corresponds to the JSON property `imageUrl` @return [String]

is_default_image_url[RW]

Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isDefaultImageUrl` @return [Boolean]

is_default_image_url?[RW]

Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isDefaultImageUrl` @return [Boolean]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#eventDefinition. Corresponds to the JSON property `kind` @return [String]

visibility[RW]

The visibility of event being tracked in this definition. Possible values are:

  • “REVEALED”: This event should be visible to all users.

  • “HIDDEN”: This event should only be shown to users that have recorded this

event at least once. Corresponds to the JSON property `visibility` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 866
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 871
def update!(**args)
  @child_events = args[:child_events] if args.key?(:child_events)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @image_url = args[:image_url] if args.key?(:image_url)
  @is_default_image_url = args[:is_default_image_url] if args.key?(:is_default_image_url)
  @kind = args[:kind] if args.key?(:kind)
  @visibility = args[:visibility] if args.key?(:visibility)
end