Class: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource
- Inherits:
-
Object
- Object
- Google::Apis::GamesManagementV1management::GamesPlayerLevelResource
- 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
-
#level ⇒ Fixnum
The level for the user.
-
#max_experience_points ⇒ Fixnum
The maximum experience points for this level.
-
#min_experience_points ⇒ Fixnum
The minimum experience points for this level.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GamesPlayerLevelResource
constructor
A new instance of GamesPlayerLevelResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#level ⇒ Fixnum
The level for the user.
Corresponds to the JSON property level
219 220 221 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 219 def level @level end |
#max_experience_points ⇒ Fixnum
The maximum experience points for this level.
Corresponds to the JSON property maxExperiencePoints
224 225 226 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 224 def max_experience_points @max_experience_points end |
#min_experience_points ⇒ Fixnum
The minimum experience points for this level.
Corresponds to the JSON property minExperiencePoints
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 |