Class: Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource
- Inherits:
-
Object
- Object
- Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource
- 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 the player's experience.
Instance Attribute Summary collapse
-
#current_experience_points ⇒ Fixnum
The current number of experience points for the player.
-
#current_level ⇒ Google::Apis::GamesManagementV1management::GamesPlayerLevelResource
This is a JSON template for 1P/3P metadata about a user's level.
-
#last_level_up_timestamp_millis ⇒ Fixnum
The timestamp when the player was leveled up, in millis since Unix epoch UTC.
-
#next_level ⇒ Google::Apis::GamesManagementV1management::GamesPlayerLevelResource
This is a JSON template for 1P/3P metadata about a user's level.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GamesPlayerExperienceInfoResource
constructor
A new instance of GamesPlayerExperienceInfoResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GamesPlayerExperienceInfoResource
Returns a new instance of GamesPlayerExperienceInfoResource
199 200 201 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_experience_points ⇒ Fixnum
The current number of experience points for the player.
Corresponds to the JSON property currentExperiencePoints
182 183 184 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 182 def current_experience_points @current_experience_points end |
#current_level ⇒ Google::Apis::GamesManagementV1management::GamesPlayerLevelResource
This is a JSON template for 1P/3P metadata about a user's level.
Corresponds to the JSON property currentLevel
187 188 189 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 187 def current_level @current_level end |
#last_level_up_timestamp_millis ⇒ Fixnum
The timestamp when the player was leveled up, in millis since Unix epoch UTC.
Corresponds to the JSON property lastLevelUpTimestampMillis
192 193 194 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 192 def @last_level_up_timestamp_millis end |
#next_level ⇒ Google::Apis::GamesManagementV1management::GamesPlayerLevelResource
This is a JSON template for 1P/3P metadata about a user's level.
Corresponds to the JSON property nextLevel
197 198 199 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 197 def next_level @next_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
204 205 206 207 208 209 |
# File 'generated/google/apis/games_management_v1management/classes.rb', line 204 def update!(**args) @current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points) @current_level = args[:current_level] if args.key?(:current_level) @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis) @next_level = args[:next_level] if args.key?(:next_level) end |