class Google::Apis::GamesV1::EventDefinition
This is a JSON template for an event definition resource.
Attributes
A list of events that are a child of this event. Corresponds to the JSON property `childEvents` @return [Array<Google::Apis::GamesV1::EventChild>]
Description of what this event represents. Corresponds to the JSON property `description` @return [String]
The name to display for the event. Corresponds to the JSON property `displayName` @return [String]
The ID of the event. Corresponds to the JSON property `id` @return [String]
The base URL for the image that represents the event. Corresponds to the JSON property `imageUrl` @return [String]
Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isDefaultImageUrl` @return [Boolean]
Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isDefaultImageUrl` @return [Boolean]
Uniquely identifies the type of this resource. Value is always the fixed string games#eventDefinition. Corresponds to the JSON property `kind` @return [String]
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
# File generated/google/apis/games_v1/classes.rb, line 866 def initialize(**args) update!(**args) end
Public Instance Methods
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