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

An leaderboard configuration resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LeaderboardConfiguration

Returns a new instance of LeaderboardConfiguration.



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

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

Instance Attribute Details

#draftGoogle::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail

A leaderboard configuration detail. Corresponds to the JSON property draft



300
301
302
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 300

def draft
  @draft
end

#idString

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

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 305

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)


311
312
313
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 311

def kind
  @kind
end

#publishedGoogle::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail

A leaderboard configuration detail. Corresponds to the JSON property published



316
317
318
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 316

def published
  @published
end

#score_maxFixnum

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

Returns:

  • (Fixnum)


321
322
323
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 321

def score_max
  @score_max
end

#score_minFixnum

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

Returns:

  • (Fixnum)


326
327
328
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 326

def score_min
  @score_min
end

#score_orderString

Corresponds to the JSON property scoreOrder

Returns:

  • (String)


331
332
333
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 331

def score_order
  @score_order
end

#tokenString

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

Returns:

  • (String)


336
337
338
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 336

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



343
344
345
346
347
348
349
350
351
352
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 343

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