class Google::Apis::GamesV1::LeaderboardScoreRank
A score rank in a leaderboard.
Attributes
formatted_num_scores[RW]
The number of scores in the leaderboard as a string. Corresponds to the JSON property `formattedNumScores` @return [String]
formatted_rank[RW]
The rank in the leaderboard as a string. Corresponds to the JSON property `formattedRank` @return [String]
kind[RW]
Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboardScoreRank`. Corresponds to the JSON property `kind` @return [String]
num_scores[RW]
The number of scores in the leaderboard. Corresponds to the JSON property `numScores` @return [Fixnum]
rank[RW]
The rank in the leaderboard. Corresponds to the JSON property `rank` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/games_v1/classes.rb, line 1517 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 1522 def update!(**args) @formatted_num_scores = args[:formatted_num_scores] if args.key?(:formatted_num_scores) @formatted_rank = args[:formatted_rank] if args.key?(:formatted_rank) @kind = args[:kind] if args.key?(:kind) @num_scores = args[:num_scores] if args.key?(:num_scores) @rank = args[:rank] if args.key?(:rank) end