Class: Google::Apis::GamesV1::PlayerLeaderboardScore
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::PlayerLeaderboardScore
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
A player leaderboard score object.
Instance Attribute Summary collapse
-
#friends_rank ⇒ Google::Apis::GamesV1::LeaderboardScoreRank
A score rank in a leaderboard.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#leaderboard_id ⇒ String
The ID of the leaderboard this score is in.
-
#public_rank ⇒ Google::Apis::GamesV1::LeaderboardScoreRank
A score rank in a leaderboard.
-
#score_string ⇒ String
The formatted value of this score.
-
#score_tag ⇒ String
Additional information about the score.
-
#score_value ⇒ Fixnum
The numerical value of this score.
-
#social_rank ⇒ Google::Apis::GamesV1::LeaderboardScoreRank
A score rank in a leaderboard.
-
#time_span ⇒ String
The time span of this score.
-
#write_timestamp ⇒ Fixnum
The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlayerLeaderboardScore
constructor
A new instance of PlayerLeaderboardScore.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PlayerLeaderboardScore
Returns a new instance of PlayerLeaderboardScore.
2028 2029 2030 |
# File 'generated/google/apis/games_v1/classes.rb', line 2028 def initialize(**args) update!(**args) end |
Instance Attribute Details
#friends_rank ⇒ Google::Apis::GamesV1::LeaderboardScoreRank
A score rank in a leaderboard.
Corresponds to the JSON property friendsRank
1978 1979 1980 |
# File 'generated/google/apis/games_v1/classes.rb', line 1978 def friends_rank @friends_rank end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#playerLeaderboardScore
.
Corresponds to the JSON property kind
1984 1985 1986 |
# File 'generated/google/apis/games_v1/classes.rb', line 1984 def kind @kind end |
#leaderboard_id ⇒ String
The ID of the leaderboard this score is in.
Corresponds to the JSON property leaderboard_id
1989 1990 1991 |
# File 'generated/google/apis/games_v1/classes.rb', line 1989 def leaderboard_id @leaderboard_id end |
#public_rank ⇒ Google::Apis::GamesV1::LeaderboardScoreRank
A score rank in a leaderboard.
Corresponds to the JSON property publicRank
1994 1995 1996 |
# File 'generated/google/apis/games_v1/classes.rb', line 1994 def public_rank @public_rank end |
#score_string ⇒ String
The formatted value of this score.
Corresponds to the JSON property scoreString
1999 2000 2001 |
# File 'generated/google/apis/games_v1/classes.rb', line 1999 def score_string @score_string end |
#score_tag ⇒ 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
2005 2006 2007 |
# File 'generated/google/apis/games_v1/classes.rb', line 2005 def score_tag @score_tag end |
#score_value ⇒ Fixnum
The numerical value of this score.
Corresponds to the JSON property scoreValue
2010 2011 2012 |
# File 'generated/google/apis/games_v1/classes.rb', line 2010 def score_value @score_value end |
#social_rank ⇒ Google::Apis::GamesV1::LeaderboardScoreRank
A score rank in a leaderboard.
Corresponds to the JSON property socialRank
2015 2016 2017 |
# File 'generated/google/apis/games_v1/classes.rb', line 2015 def @social_rank end |
#time_span ⇒ String
The time span of this score.
Corresponds to the JSON property timeSpan
2020 2021 2022 |
# File 'generated/google/apis/games_v1/classes.rb', line 2020 def time_span @time_span end |
#write_timestamp ⇒ Fixnum
The timestamp at which this score was recorded, in milliseconds since the
epoch in UTC.
Corresponds to the JSON property writeTimestamp
2026 2027 2028 |
# File 'generated/google/apis/games_v1/classes.rb', line 2026 def @write_timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 |
# File 'generated/google/apis/games_v1/classes.rb', line 2033 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 |