Class: Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb
Overview
A list of player leaderboard scores.
Instance Attribute Summary collapse
-
#items ⇒ Array<Google::Apis::GamesV1::PlayerLeaderboardScore>
The leaderboard scores.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#next_page_token ⇒ String
The pagination token for the next page of results.
-
#player ⇒ Google::Apis::GamesV1::Player
A Player resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListPlayerLeaderboardScoreResponse
constructor
A new instance of ListPlayerLeaderboardScoreResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListPlayerLeaderboardScoreResponse
Returns a new instance of ListPlayerLeaderboardScoreResponse.
2199 2200 2201 |
# File 'lib/google/apis/games_v1/classes.rb', line 2199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::GamesV1::PlayerLeaderboardScore>
The leaderboard scores.
Corresponds to the JSON property items
2181 2182 2183 |
# File 'lib/google/apis/games_v1/classes.rb', line 2181 def items @items end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#playerLeaderboardScoreListResponse.
Corresponds to the JSON property kind
2187 2188 2189 |
# File 'lib/google/apis/games_v1/classes.rb', line 2187 def kind @kind end |
#next_page_token ⇒ String
The pagination token for the next page of results.
Corresponds to the JSON property nextPageToken
2192 2193 2194 |
# File 'lib/google/apis/games_v1/classes.rb', line 2192 def next_page_token @next_page_token end |
#player ⇒ Google::Apis::GamesV1::Player
A Player resource.
Corresponds to the JSON property player
2197 2198 2199 |
# File 'lib/google/apis/games_v1/classes.rb', line 2197 def player @player end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2204 2205 2206 2207 2208 2209 |
# File 'lib/google/apis/games_v1/classes.rb', line 2204 def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @player = args[:player] if args.key?(:player) end |