Class: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GamesPlayerLevelResource

Returns a new instance of GamesPlayerLevelResource



231
232
233
# File 'generated/google/apis/games_management_v1management/classes.rb', line 231

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

Instance Attribute Details

#levelFixnum

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

Returns:

  • (Fixnum)


219
220
221
# File 'generated/google/apis/games_management_v1management/classes.rb', line 219

def level
  @level
end

#max_experience_pointsFixnum

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

Returns:

  • (Fixnum)


224
225
226
# File 'generated/google/apis/games_management_v1management/classes.rb', line 224

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)


229
230
231
# File 'generated/google/apis/games_management_v1management/classes.rb', line 229

def min_experience_points
  @min_experience_points
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



236
237
238
239
240
# File 'generated/google/apis/games_management_v1management/classes.rb', line 236

def update!(**args)
  @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