Class: Google::Apis::GamesV1::LeaderboardScores
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::LeaderboardScores
- 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 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 ⇒ String
The total number of scores in the leaderboard.
-
#player_score ⇒ Google::Apis::GamesV1::LeaderboardEntry
This is a JSON template for 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LeaderboardScores
Returns a new instance of LeaderboardScores.
1678 1679 1680 |
# File 'generated/google/apis/games_v1/classes.rb', line 1678 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
1650 1651 1652 |
# File 'generated/google/apis/games_v1/classes.rb', line 1650 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
1656 1657 1658 |
# File 'generated/google/apis/games_v1/classes.rb', line 1656 def kind @kind end |
#next_page_token ⇒ String
The pagination token for the next page of results.
Corresponds to the JSON property nextPageToken
1661 1662 1663 |
# File 'generated/google/apis/games_v1/classes.rb', line 1661 def next_page_token @next_page_token end |
#num_scores ⇒ String
The total number of scores in the leaderboard.
Corresponds to the JSON property numScores
1666 1667 1668 |
# File 'generated/google/apis/games_v1/classes.rb', line 1666 def num_scores @num_scores end |
#player_score ⇒ Google::Apis::GamesV1::LeaderboardEntry
This is a JSON template for the Leaderboard Entry resource.
Corresponds to the JSON property playerScore
1671 1672 1673 |
# File 'generated/google/apis/games_v1/classes.rb', line 1671 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
1676 1677 1678 |
# File 'generated/google/apis/games_v1/classes.rb', line 1676 def prev_page_token @prev_page_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1683 1684 1685 1686 1687 1688 1689 1690 |
# File 'generated/google/apis/games_v1/classes.rb', line 1683 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 |