Class: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_configuration_v1configuration/classes.rb,
 generated/google/apis/games_configuration_v1configuration/representations.rb,
 generated/google/apis/games_configuration_v1configuration/representations.rb
Overview
This is a JSON template for an leaderboard configuration resource.
Instance Attribute Summary collapse
- 
  
    
      #draft  ⇒ Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for a leaderboard configuration detail. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the leaderboard. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #published  ⇒ Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for a leaderboard configuration detail. 
- 
  
    
      #score_max  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Maximum score that can be posted to this leaderboard. 
- 
  
    
      #score_min  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Minimum score that can be posted to this leaderboard. 
- 
  
    
      #score_order  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the leaderboard. 
- 
  
    
      #token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The token for this resource. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LeaderboardConfiguration 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LeaderboardConfiguration. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LeaderboardConfiguration
Returns a new instance of LeaderboardConfiguration
| 354 355 356 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 354 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#draft ⇒ Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail
This is a JSON template for a leaderboard configuration detail.
Corresponds to the JSON property draft
| 313 314 315 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 313 def draft @draft end | 
#id ⇒ String
The ID of the leaderboard.
Corresponds to the JSON property id
| 318 319 320 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 318 def id @id end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string gamesConfiguration#leaderboardConfiguration.
Corresponds to the JSON property kind
| 324 325 326 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 324 def kind @kind end | 
#published ⇒ Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail
This is a JSON template for a leaderboard configuration detail.
Corresponds to the JSON property published
| 329 330 331 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 329 def published @published end | 
#score_max ⇒ Fixnum
Maximum score that can be posted to this leaderboard.
Corresponds to the JSON property scoreMax
| 334 335 336 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 334 def score_max @score_max end | 
#score_min ⇒ Fixnum
Minimum score that can be posted to this leaderboard.
Corresponds to the JSON property scoreMin
| 339 340 341 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 339 def score_min @score_min end | 
#score_order ⇒ String
The type of the leaderboard. Possible values are:
- "LARGER_IS_BETTER" - Larger scores posted are ranked higher.
- "SMALLER_IS_BETTER" - Smaller scores posted are ranked higher.
Corresponds to the JSON property scoreOrder
| 347 348 349 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 347 def score_order @score_order end | 
#token ⇒ String
The token for this resource.
Corresponds to the JSON property token
| 352 353 354 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 352 def token @token end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 359 360 361 362 363 364 365 366 367 368 | # File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 359 def update!(**args) @draft = args[:draft] if args.key?(:draft) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @published = args[:published] if args.key?(:published) @score_max = args[:score_max] if args.key?(:score_max) @score_min = args[:score_min] if args.key?(:score_min) @score_order = args[:score_order] if args.key?(:score_order) @token = args[:token] if args.key?(:token) end |