class Google::Apis::GamesV1::PlayerLeaderboardScore
A player leaderboard score object.
Attributes
A score rank in a leaderboard. Corresponds to the JSON property `friendsRank` @return [Google::Apis::GamesV1::LeaderboardScoreRank]
Uniquely identifies the type of this resource. Value is always the fixed string `games#playerLeaderboardScore`. Corresponds to the JSON property `kind` @return [String]
The ID of the leaderboard this score is in. Corresponds to the JSON property `leaderboard_id` @return [String]
A score rank in a leaderboard. Corresponds to the JSON property `publicRank` @return [Google::Apis::GamesV1::LeaderboardScoreRank]
The formatted value of this score. Corresponds to the JSON property `scoreString` @return [String]
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 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 `writeTimestamp` @return [Fixnum]
Public Class Methods
# File lib/google/apis/games_v1/classes.rb, line 1998 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/games_v1/classes.rb, line 2003 def update!(**args) @friends_rank = args[:friends_rank] if args.key?(:friends_rank) @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