class Google::Apis::GamesV1::PlayerLevel

This is a JSON template for 1P/3P metadata about a user's level.

Attributes

kind[RW]

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

level[RW]

The level for the user. Corresponds to the JSON property `level` @return [Fixnum]

max_experience_points[RW]

The maximum experience points for this level. Corresponds to the JSON property `maxExperiencePoints` @return [String]

min_experience_points[RW]

The minimum experience points for this level. Corresponds to the JSON property `minExperiencePoints` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 2450
def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @level = args[:level] if args.key?(:level)
  @max_experience_points = args[:max_experience_points] if args.key?(:max_experience_points)
  @min_experience_points = args[:min_experience_points] if args.key?(:min_experience_points)
end