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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GamesPlayerLevelResource

Returns a new instance of GamesPlayerLevelResource.



201
202
203
# File 'generated/google/apis/games_management_v1management/classes.rb', line 201

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

Instance Attribute Details

#levelFixnum

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

Returns:

  • (Fixnum)


189
190
191
# File 'generated/google/apis/games_management_v1management/classes.rb', line 189

def level
  @level
end

#max_experience_pointsFixnum

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

Returns:

  • (Fixnum)


194
195
196
# File 'generated/google/apis/games_management_v1management/classes.rb', line 194

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)


199
200
201
# File 'generated/google/apis/games_management_v1management/classes.rb', line 199

def min_experience_points
  @min_experience_points
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



206
207
208
209
210
# File 'generated/google/apis/games_management_v1management/classes.rb', line 206

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