Class: Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GamesPlayerExperienceInfoResource

Returns a new instance of GamesPlayerExperienceInfoResource.



169
170
171
# File 'generated/google/apis/games_management_v1management/classes.rb', line 169

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

Instance Attribute Details

#current_experience_pointsFixnum

The current number of experience points for the player. Corresponds to the JSON property currentExperiencePoints

Returns:

  • (Fixnum)


152
153
154
# File 'generated/google/apis/games_management_v1management/classes.rb', line 152

def current_experience_points
  @current_experience_points
end

#current_levelGoogle::Apis::GamesManagementV1management::GamesPlayerLevelResource

1P/3P metadata about a user's level. Corresponds to the JSON property currentLevel



157
158
159
# File 'generated/google/apis/games_management_v1management/classes.rb', line 157

def current_level
  @current_level
end

#last_level_up_timestamp_millisFixnum

The timestamp when the player was leveled up, in millis since Unix epoch UTC. Corresponds to the JSON property lastLevelUpTimestampMillis

Returns:

  • (Fixnum)


162
163
164
# File 'generated/google/apis/games_management_v1management/classes.rb', line 162

def last_level_up_timestamp_millis
  @last_level_up_timestamp_millis
end

#next_levelGoogle::Apis::GamesManagementV1management::GamesPlayerLevelResource

1P/3P metadata about a user's level. Corresponds to the JSON property nextLevel



167
168
169
# File 'generated/google/apis/games_management_v1management/classes.rb', line 167

def next_level
  @next_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



174
175
176
177
178
179
# File 'generated/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