Class: Google::Apis::GamesV1::PlayerLevel

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

Overview

1P/3P metadata about a user's level.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlayerLevel

Returns a new instance of PlayerLevel.



2294
2295
2296
# File 'lib/google/apis/games_v1/classes.rb', line 2294

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

Instance Attribute Details

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. Corresponds to the JSON property kind

Returns:

  • (String)


2277
2278
2279
# File 'lib/google/apis/games_v1/classes.rb', line 2277

def kind
  @kind
end

#levelFixnum

The level for the user. Corresponds to the JSON property level

Returns:

  • (Fixnum)


2282
2283
2284
# File 'lib/google/apis/games_v1/classes.rb', line 2282

def level
  @level
end

#max_experience_pointsFixnum

The maximum experience points for this level. Corresponds to the JSON property maxExperiencePoints

Returns:

  • (Fixnum)


2287
2288
2289
# File 'lib/google/apis/games_v1/classes.rb', line 2287

def max_experience_points
  @max_experience_points
end

#min_experience_pointsFixnum

The minimum experience points for this level. Corresponds to the JSON property minExperiencePoints

Returns:

  • (Fixnum)


2292
2293
2294
# File 'lib/google/apis/games_v1/classes.rb', line 2292

def min_experience_points
  @min_experience_points
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2299
2300
2301
2302
2303
2304
# File 'lib/google/apis/games_v1/classes.rb', line 2299

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