class Google::Apis::GamesV1::PlayerLeaderboardScore

This is a JSON template for a player leaderboard score object.

Attributes

kind[RW]

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

leaderboard_id[RW]

The ID of the leaderboard this score is in. Corresponds to the JSON property `leaderboard_id` @return [String]

public_rank[RW]

This is a JSON template for a score rank in a leaderboard. Corresponds to the JSON property `publicRank` @return [Google::Apis::GamesV1::LeaderboardScoreRank]

score_string[RW]

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

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 [String]

social_rank[RW]

This is a JSON template for a score rank in a leaderboard. Corresponds to the JSON property `socialRank` @return [Google::Apis::GamesV1::LeaderboardScoreRank]

time_span[RW]

The time span of this score. Possible values are:

  • “ALL_TIME” - The score is an all-time score.

  • “WEEKLY” - The score is a weekly score.

  • “DAILY” - The score is a daily score.

Corresponds to the JSON property `timeSpan` @return [String]

write_timestamp[RW]

The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. Corresponds to the JSON property `writeTimestamp` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 2364
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 2369
def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id)
  @public_rank = args[:public_rank] if args.key?(:public_rank)
  @score_string = args[:score_string] if args.key?(:score_string)
  @score_tag = args[:score_tag] if args.key?(:score_tag)
  @score_value = args[:score_value] if args.key?(:score_value)
  @social_rank = args[:social_rank] if args.key?(:social_rank)
  @time_span = args[:time_span] if args.key?(:time_span)
  @write_timestamp = args[:write_timestamp] if args.key?(:write_timestamp)
end