class Google::Apis::GamesV1::PlayerExperienceInfo

1P/3P metadata about the player's experience.

Attributes

current_experience_points[RW]

The current number of experience points for the player. Corresponds to the JSON property `currentExperiencePoints` @return [Fixnum]

current_level[RW]

1P/3P metadata about a user's level. Corresponds to the JSON property `currentLevel` @return [Google::Apis::GamesV1::PlayerLevel]

kind[RW]

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

last_level_up_timestamp_millis[RW]

The timestamp when the player was leveled up, in millis since Unix epoch UTC. Corresponds to the JSON property `lastLevelUpTimestampMillis` @return [Fixnum]

next_level[RW]

1P/3P metadata about a user's level. Corresponds to the JSON property `nextLevel` @return [Google::Apis::GamesV1::PlayerLevel]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/games_v1/classes.rb, line 1927
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 1932
def update!(**args)
  @current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points)
  @current_level = args[:current_level] if args.key?(:current_level)
  @kind = args[:kind] if args.key?(:kind)
  @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis)
  @next_level = args[:next_level] if args.key?(:next_level)
end