class Google::Apis::GamesV1::PlayerEvent
An event status resource.
Attributes
The ID of the event definition. Corresponds to the JSON property `definitionId` @return [String]
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]
Uniquely identifies the type of this resource. Value is always the fixed string `games#playerEvent`. Corresponds to the JSON property `kind` @return [String]
The current number of times this event has occurred. Corresponds to the JSON property `numEvents` @return [Fixnum]
The ID of the player. Corresponds to the JSON property `playerId` @return [String]
Public Class Methods
# File lib/google/apis/games_v1/classes.rb, line 1851 def initialize(**args) update!(**args) end
Public Instance Methods
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