class Google::Apis::GamesV1::PlayerScoreResponse

A list of leaderboard entry resources.

Attributes

beaten_score_time_spans[RW]

The time spans where the submitted score is better than the existing score for that time span. Corresponds to the JSON property `beatenScoreTimeSpans` @return [Array<String>]

formatted_score[RW]

The formatted value of the submitted score. Corresponds to the JSON property `formattedScore` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string `games#playerScoreResponse`. Corresponds to the JSON property `kind` @return [String]

leaderboard_id[RW]

The leaderboard ID that this score was submitted to. Corresponds to the JSON property `leaderboardId` @return [String]

score_tag[RW]

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` @return [String]

unbeaten_scores[RW]

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` @return [Array<Google::Apis::GamesV1::PlayerScore>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/games_v1/classes.rb, line 2235
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/games_v1/classes.rb, line 2240
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