class Google::Apis::GamesV1::LeaderboardEntry
The Leaderboard
Entry resource.
Attributes
The localized string for the numerical value of this score. Corresponds to the JSON property `formattedScore` @return [String]
The localized string for the rank of this score for this leaderboard. Corresponds to the JSON property `formattedScoreRank` @return [String]
Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboardEntry`. Corresponds to the JSON property `kind` @return [String]
A Player
resource. Corresponds to the JSON property `player` @return [Google::Apis::GamesV1::Player]
The rank of this score for this leaderboard. Corresponds to the JSON property `scoreRank` @return [Fixnum]
Additional information about the score. Values must 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]
The numerical value of this score. Corresponds to the JSON property `scoreValue` @return [Fixnum]
The time span of this high score. Corresponds to the JSON property `timeSpan` @return [String]
The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. Corresponds to the JSON property `writeTimestampMillis` @return [Fixnum]
Public Class Methods
# File lib/google/apis/games_v1/classes.rb, line 1437 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/games_v1/classes.rb, line 1442 def update!(**args) @formatted_score = args[:formatted_score] if args.key?(:formatted_score) @formatted_score_rank = args[:formatted_score_rank] if args.key?(:formatted_score_rank) @kind = args[:kind] if args.key?(:kind) @player = args[:player] if args.key?(:player) @score_rank = args[:score_rank] if args.key?(:score_rank) @score_tag = args[:score_tag] if args.key?(:score_tag) @score_value = args[:score_value] if args.key?(:score_value) @time_span = args[:time_span] if args.key?(:time_span) @write_timestamp_millis = args[:write_timestamp_millis] if args.key?(:write_timestamp_millis) end