Class: Google::Apis::GamesV1::EventDefinition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb

Overview

An event definition resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventDefinition

Returns a new instance of EventDefinition.



771
772
773
# File 'lib/google/apis/games_v1/classes.rb', line 771

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

Instance Attribute Details

#child_eventsArray<Google::Apis::GamesV1::EventChild>

A list of events that are a child of this event. Corresponds to the JSON property childEvents



731
732
733
# File 'lib/google/apis/games_v1/classes.rb', line 731

def child_events
  @child_events
end

#descriptionString

Description of what this event represents. Corresponds to the JSON property description

Returns:

  • (String)


736
737
738
# File 'lib/google/apis/games_v1/classes.rb', line 736

def description
  @description
end

#display_nameString

The name to display for the event. Corresponds to the JSON property displayName

Returns:

  • (String)


741
742
743
# File 'lib/google/apis/games_v1/classes.rb', line 741

def display_name
  @display_name
end

#idString

The ID of the event. Corresponds to the JSON property id

Returns:

  • (String)


746
747
748
# File 'lib/google/apis/games_v1/classes.rb', line 746

def id
  @id
end

#image_urlString

The base URL for the image that represents the event. Corresponds to the JSON property imageUrl

Returns:

  • (String)


751
752
753
# File 'lib/google/apis/games_v1/classes.rb', line 751

def image_url
  @image_url
end

#is_default_image_urlBoolean Also known as: is_default_image_url?

Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property isDefaultImageUrl

Returns:

  • (Boolean)


757
758
759
# File 'lib/google/apis/games_v1/classes.rb', line 757

def is_default_image_url
  @is_default_image_url
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#eventDefinition. Corresponds to the JSON property kind

Returns:

  • (String)


764
765
766
# File 'lib/google/apis/games_v1/classes.rb', line 764

def kind
  @kind
end

#visibilityString

The visibility of event being tracked in this definition. Corresponds to the JSON property visibility

Returns:

  • (String)


769
770
771
# File 'lib/google/apis/games_v1/classes.rb', line 769

def visibility
  @visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



776
777
778
779
780
781
782
783
784
785
# File 'lib/google/apis/games_v1/classes.rb', line 776

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