class Google::Apis::GamesV1::LeaderboardScoreRank

This is a JSON template for 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 [String]

rank[RW]

The rank in the leaderboard. Corresponds to the JSON property `rank` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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