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
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.
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
#level ⇒ Fixnum
The level for the user.
Corresponds to the JSON property level
189 190 191 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 189 def level @level end |
#max_experience_points ⇒ Fixnum
The maximum experience points for this level.
Corresponds to the JSON property maxExperiencePoints
194 195 196 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 194 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
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 |