Class: Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListPlayerLeaderboardScoreResponse

Returns a new instance of ListPlayerLeaderboardScoreResponse.



2419
2420
2421
# File 'generated/google/apis/games_v1/classes.rb', line 2419

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#itemsArray<Google::Apis::GamesV1::PlayerLeaderboardScore>

The leaderboard scores. Corresponds to the JSON property items



2401
2402
2403
# File 'generated/google/apis/games_v1/classes.rb', line 2401

def items
  @items
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#playerLeaderboardScoreListResponse. Corresponds to the JSON property kind

Returns:

  • (String)


2407
2408
2409
# File 'generated/google/apis/games_v1/classes.rb', line 2407

def kind
  @kind
end

#next_page_tokenString

The pagination token for the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


2412
2413
2414
# File 'generated/google/apis/games_v1/classes.rb', line 2412

def next_page_token
  @next_page_token
end

#playerGoogle::Apis::GamesV1::Player

This is a JSON template for a Player resource. Corresponds to the JSON property player



2417
2418
2419
# File 'generated/google/apis/games_v1/classes.rb', line 2417

def player
  @player
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2424
2425
2426
2427
2428
2429
# File 'generated/google/apis/games_v1/classes.rb', line 2424

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