Class: Google::Apis::GamesV1::LeaderboardScores
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::LeaderboardScores
- 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 ListScores response.
Instance Attribute Summary collapse
-
#items ⇒ Array<Google::Apis::GamesV1::LeaderboardEntry>
The scores in the leaderboard.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#next_page_token ⇒ String
The pagination token for the next page of results.
-
#num_scores ⇒ Fixnum
The total number of scores in the leaderboard.
-
#player_score ⇒ Google::Apis::GamesV1::LeaderboardEntry
The Leaderboard Entry resource.
-
#prev_page_token ⇒ String
The pagination token for the previous page of results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LeaderboardScores
constructor
A new instance of LeaderboardScores.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LeaderboardScores
Returns a new instance of LeaderboardScores.
1566 1567 1568 |
# File 'lib/google/apis/games_v1/classes.rb', line 1566 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::GamesV1::LeaderboardEntry>
The scores in the leaderboard.
Corresponds to the JSON property items
1538 1539 1540 |
# File 'lib/google/apis/games_v1/classes.rb', line 1538 def items @items end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#leaderboardScores.
Corresponds to the JSON property kind
1544 1545 1546 |
# File 'lib/google/apis/games_v1/classes.rb', line 1544 def kind @kind end |
#next_page_token ⇒ String
The pagination token for the next page of results.
Corresponds to the JSON property nextPageToken
1549 1550 1551 |
# File 'lib/google/apis/games_v1/classes.rb', line 1549 def next_page_token @next_page_token end |
#num_scores ⇒ Fixnum
The total number of scores in the leaderboard.
Corresponds to the JSON property numScores
1554 1555 1556 |
# File 'lib/google/apis/games_v1/classes.rb', line 1554 def num_scores @num_scores end |
#player_score ⇒ Google::Apis::GamesV1::LeaderboardEntry
The Leaderboard Entry resource.
Corresponds to the JSON property playerScore
1559 1560 1561 |
# File 'lib/google/apis/games_v1/classes.rb', line 1559 def player_score @player_score end |
#prev_page_token ⇒ String
The pagination token for the previous page of results.
Corresponds to the JSON property prevPageToken
1564 1565 1566 |
# File 'lib/google/apis/games_v1/classes.rb', line 1564 def prev_page_token @prev_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1571 1572 1573 1574 1575 1576 1577 1578 |
# File 'lib/google/apis/games_v1/classes.rb', line 1571 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) @num_scores = args[:num_scores] if args.key?(:num_scores) @player_score = args[:player_score] if args.key?(:player_score) @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) end |