Class: Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse
- 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
This is a JSON template for 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
This is a JSON template for a Player resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListPlayerLeaderboardScoreResponse
constructor
A new instance of ListPlayerLeaderboardScoreResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ListPlayerLeaderboardScoreResponse
Returns a new instance of ListPlayerLeaderboardScoreResponse
2413 2414 2415 |
# File 'generated/google/apis/games_v1/classes.rb', line 2413 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::GamesV1::PlayerLeaderboardScore>
The leaderboard scores.
Corresponds to the JSON property items
2395 2396 2397 |
# File 'generated/google/apis/games_v1/classes.rb', line 2395 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
2401 2402 2403 |
# File 'generated/google/apis/games_v1/classes.rb', line 2401 def kind @kind end |
#next_page_token ⇒ String
The pagination token for the next page of results.
Corresponds to the JSON property nextPageToken
2406 2407 2408 |
# File 'generated/google/apis/games_v1/classes.rb', line 2406 def next_page_token @next_page_token end |
#player ⇒ Google::Apis::GamesV1::Player
This is a JSON template for a Player resource.
Corresponds to the JSON property player
2411 2412 2413 |
# File 'generated/google/apis/games_v1/classes.rb', line 2411 def player @player end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2418 2419 2420 2421 2422 2423 |
# File 'generated/google/apis/games_v1/classes.rb', line 2418 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 |