Class: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#draftGoogle::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

#idString

The ID of the leaderboard. Corresponds to the JSON property id

Returns:

  • (String)


318
319
320
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 318

def id
  @id
end

#kindString

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

Returns:

  • (String)


324
325
326
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 324

def kind
  @kind
end

#publishedGoogle::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_maxString

Maximum score that can be posted to this leaderboard. Corresponds to the JSON property scoreMax

Returns:

  • (String)


334
335
336
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 334

def score_max
  @score_max
end

#score_minString

Minimum score that can be posted to this leaderboard. Corresponds to the JSON property scoreMin

Returns:

  • (String)


339
340
341
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 339

def score_min
  @score_min
end

#score_orderString

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

Returns:

  • (String)


347
348
349
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 347

def score_order
  @score_order
end

#tokenString

The token for this resource. Corresponds to the JSON property token

Returns:

  • (String)


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