Class: Google::Apis::GamesV1::PlayerExperienceInfo
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::PlayerExperienceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb
Overview
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::GamesV1::PlayerLevel
1P/3P metadata about a user's level.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#last_level_up_timestamp_millis ⇒ Fixnum
The timestamp when the player was leveled up, in millis since Unix epoch UTC.
-
#next_level ⇒ Google::Apis::GamesV1::PlayerLevel
1P/3P metadata about a user's level.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlayerExperienceInfo
constructor
A new instance of PlayerExperienceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PlayerExperienceInfo
Returns a new instance of PlayerExperienceInfo.
2084 2085 2086 |
# File 'lib/google/apis/games_v1/classes.rb', line 2084 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
2061 2062 2063 |
# File 'lib/google/apis/games_v1/classes.rb', line 2061 def current_experience_points @current_experience_points end |
#current_level ⇒ Google::Apis::GamesV1::PlayerLevel
1P/3P metadata about a user's level.
Corresponds to the JSON property currentLevel
2066 2067 2068 |
# File 'lib/google/apis/games_v1/classes.rb', line 2066 def current_level @current_level end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#playerExperienceInfo.
Corresponds to the JSON property kind
2072 2073 2074 |
# File 'lib/google/apis/games_v1/classes.rb', line 2072 def kind @kind 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
2077 2078 2079 |
# File 'lib/google/apis/games_v1/classes.rb', line 2077 def @last_level_up_timestamp_millis end |
#next_level ⇒ Google::Apis::GamesV1::PlayerLevel
1P/3P metadata about a user's level.
Corresponds to the JSON property nextLevel
2082 2083 2084 |
# File 'lib/google/apis/games_v1/classes.rb', line 2082 def next_level @next_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2089 2090 2091 2092 2093 2094 2095 |
# File 'lib/google/apis/games_v1/classes.rb', line 2089 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) @kind = args[:kind] if args.key?(:kind) @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 |