class Google::Apis::GamesV1::LeaderboardEntry

The Leaderboard Entry resource.

Attributes

formatted_score[RW]

The localized string for the numerical value of this score. Corresponds to the JSON property `formattedScore` @return [String]

formatted_score_rank[RW]

The localized string for the rank of this score for this leaderboard. Corresponds to the JSON property `formattedScoreRank` @return [String]

kind[RW]

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

player[RW]

A Player resource. Corresponds to the JSON property `player` @return [Google::Apis::GamesV1::Player]

score_rank[RW]

The rank of this score for this leaderboard. Corresponds to the JSON property `scoreRank` @return [Fixnum]

score_tag[RW]

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]

score_value[RW]

The numerical value of this score. Corresponds to the JSON property `scoreValue` @return [Fixnum]

time_span[RW]

The time span of this high score. Corresponds to the JSON property `timeSpan` @return [String]

write_timestamp_millis[RW]

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

new(**args) click to toggle source
# File lib/google/apis/games_v1/classes.rb, line 1437
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 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