Class: Google::Apis::GamesV1::LeaderboardScores

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

A ListScores response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LeaderboardScores

Returns a new instance of LeaderboardScores.



1596
1597
1598
# File 'generated/google/apis/games_v1/classes.rb', line 1596

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

Instance Attribute Details

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

The scores in the leaderboard. Corresponds to the JSON property items



1568
1569
1570
# File 'generated/google/apis/games_v1/classes.rb', line 1568

def items
  @items
end

#kindString

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

Returns:

  • (String)


1574
1575
1576
# File 'generated/google/apis/games_v1/classes.rb', line 1574

def kind
  @kind
end

#next_page_tokenString

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

Returns:

  • (String)


1579
1580
1581
# File 'generated/google/apis/games_v1/classes.rb', line 1579

def next_page_token
  @next_page_token
end

#num_scoresFixnum

The total number of scores in the leaderboard. Corresponds to the JSON property numScores

Returns:

  • (Fixnum)


1584
1585
1586
# File 'generated/google/apis/games_v1/classes.rb', line 1584

def num_scores
  @num_scores
end

#player_scoreGoogle::Apis::GamesV1::LeaderboardEntry

The Leaderboard Entry resource. Corresponds to the JSON property playerScore



1589
1590
1591
# File 'generated/google/apis/games_v1/classes.rb', line 1589

def player_score
  @player_score
end

#prev_page_tokenString

The pagination token for the previous page of results. Corresponds to the JSON property prevPageToken

Returns:

  • (String)


1594
1595
1596
# File 'generated/google/apis/games_v1/classes.rb', line 1594

def prev_page_token
  @prev_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1601
1602
1603
1604
1605
1606
1607
1608
# File 'generated/google/apis/games_v1/classes.rb', line 1601

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