class Google::Apis::GamesV1::PlayerEvent

An event status resource.

Attributes

definition_id[RW]

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

formatted_num_events[RW]

The current number of times this event has occurred, as a string. The formatting of this string depends on the configuration of your event in the Play Games Developer Console. Corresponds to the JSON property `formattedNumEvents` @return [String]

kind[RW]

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

num_events[RW]

The current number of times this event has occurred. Corresponds to the JSON property `numEvents` @return [Fixnum]

player_id[RW]

The ID of the player. Corresponds to the JSON property `playerId` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/games_v1/classes.rb, line 1856
def update!(**args)
  @definition_id = args[:definition_id] if args.key?(:definition_id)
  @formatted_num_events = args[:formatted_num_events] if args.key?(:formatted_num_events)
  @kind = args[:kind] if args.key?(:kind)
  @num_events = args[:num_events] if args.key?(:num_events)
  @player_id = args[:player_id] if args.key?(:player_id)
end