Class: Google::Apis::GamesV1::PlayerScoreResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::PlayerScoreResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
A list of leaderboard entry resources.
Instance Attribute Summary collapse
-
#beaten_score_time_spans ⇒ Array<String>
The time spans where the submitted score is better than the existing score for that time span.
-
#formatted_score ⇒ String
The formatted value of the submitted score.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#leaderboard_id ⇒ String
The leaderboard ID that this score was submitted to.
-
#score_tag ⇒ String
Additional information about this score.
-
#unbeaten_scores ⇒ Array<Google::Apis::GamesV1::PlayerScore>
The scores in time spans that have not been beaten.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlayerScoreResponse
constructor
A new instance of PlayerScoreResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PlayerScoreResponse
Returns a new instance of PlayerScoreResponse.
2265 2266 2267 |
# File 'generated/google/apis/games_v1/classes.rb', line 2265 def initialize(**args) update!(**args) end |
Instance Attribute Details
#beaten_score_time_spans ⇒ Array<String>
The time spans where the submitted score is better than the existing score for
that time span.
Corresponds to the JSON property beatenScoreTimeSpans
2234 2235 2236 |
# File 'generated/google/apis/games_v1/classes.rb', line 2234 def beaten_score_time_spans @beaten_score_time_spans end |
#formatted_score ⇒ String
The formatted value of the submitted score.
Corresponds to the JSON property formattedScore
2239 2240 2241 |
# File 'generated/google/apis/games_v1/classes.rb', line 2239 def formatted_score @formatted_score end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#playerScoreResponse
.
Corresponds to the JSON property kind
2245 2246 2247 |
# File 'generated/google/apis/games_v1/classes.rb', line 2245 def kind @kind end |
#leaderboard_id ⇒ String
The leaderboard ID that this score was submitted to.
Corresponds to the JSON property leaderboardId
2250 2251 2252 |
# File 'generated/google/apis/games_v1/classes.rb', line 2250 def leaderboard_id @leaderboard_id end |
#score_tag ⇒ String
Additional information about this score. Values will contain no more than 64
URI-safe characters as defined by section 2.3 of RFC 3986.
Corresponds to the JSON property scoreTag
2256 2257 2258 |
# File 'generated/google/apis/games_v1/classes.rb', line 2256 def score_tag @score_tag end |
#unbeaten_scores ⇒ Array<Google::Apis::GamesV1::PlayerScore>
The scores in time spans that have not been beaten. As an example, the
submitted score may be better than the player's DAILY
score, but not better
than the player's scores for the WEEKLY
or ALL_TIME
time spans.
Corresponds to the JSON property unbeatenScores
2263 2264 2265 |
# File 'generated/google/apis/games_v1/classes.rb', line 2263 def unbeaten_scores @unbeaten_scores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2270 2271 2272 2273 2274 2275 2276 2277 |
# File 'generated/google/apis/games_v1/classes.rb', line 2270 def update!(**args) @beaten_score_time_spans = args[:beaten_score_time_spans] if args.key?(:beaten_score_time_spans) @formatted_score = args[:formatted_score] if args.key?(:formatted_score) @kind = args[:kind] if args.key?(:kind) @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) @score_tag = args[:score_tag] if args.key?(:score_tag) @unbeaten_scores = args[:unbeaten_scores] if args.key?(:unbeaten_scores) end |