class Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource
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::GamesManagementV1management::GamesPlayerLevelResource]
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::GamesManagementV1management::GamesPlayerLevelResource]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/games_management_v1management/classes.rb, line 169 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_management_v1management/classes.rb, line 174 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) @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