Class: Google::Apis::GamesV1::LeaderboardScoreRank
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::LeaderboardScoreRank
 
- 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 score rank in a leaderboard.
Instance Attribute Summary collapse
- 
  
    
      #formatted_num_scores  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The number of scores in the leaderboard as a string. 
- 
  
    
      #formatted_rank  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The rank in the leaderboard as a string. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #num_scores  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The number of scores in the leaderboard. 
- 
  
    
      #rank  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The rank in the leaderboard. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LeaderboardScoreRank 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LeaderboardScoreRank. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LeaderboardScoreRank
Returns a new instance of LeaderboardScoreRank
| 1629 1630 1631 | # File 'generated/google/apis/games_v1/classes.rb', line 1629 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#formatted_num_scores ⇒ String
The number of scores in the leaderboard as a string.
Corresponds to the JSON property formattedNumScores
| 1606 1607 1608 | # File 'generated/google/apis/games_v1/classes.rb', line 1606 def formatted_num_scores @formatted_num_scores end | 
#formatted_rank ⇒ String
The rank in the leaderboard as a string.
Corresponds to the JSON property formattedRank
| 1611 1612 1613 | # File 'generated/google/apis/games_v1/classes.rb', line 1611 def formatted_rank @formatted_rank end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#leaderboardScoreRank.
Corresponds to the JSON property kind
| 1617 1618 1619 | # File 'generated/google/apis/games_v1/classes.rb', line 1617 def kind @kind end | 
#num_scores ⇒ Fixnum
The number of scores in the leaderboard.
Corresponds to the JSON property numScores
| 1622 1623 1624 | # File 'generated/google/apis/games_v1/classes.rb', line 1622 def num_scores @num_scores end | 
#rank ⇒ Fixnum
The rank in the leaderboard.
Corresponds to the JSON property rank
| 1627 1628 1629 | # File 'generated/google/apis/games_v1/classes.rb', line 1627 def rank @rank end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1634 1635 1636 1637 1638 1639 1640 | # File 'generated/google/apis/games_v1/classes.rb', line 1634 def update!(**args) @formatted_num_scores = args[:formatted_num_scores] if args.key?(:formatted_num_scores) @formatted_rank = args[:formatted_rank] if args.key?(:formatted_rank) @kind = args[:kind] if args.key?(:kind) @num_scores = args[:num_scores] if args.key?(:num_scores) @rank = args[:rank] if args.key?(:rank) end |