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
An leaderboard configuration resource.
Instance Attribute Summary collapse
-
#draft ⇒ Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail
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
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
Corresponds to the JSON property
scoreOrder
. -
#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.
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
#draft ⇒ Google::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 |
#id ⇒ String
The ID of the leaderboard.
Corresponds to the JSON property id
305 306 307 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 305 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
311 312 313 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 311 def kind @kind end |
#published ⇒ Google::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_max ⇒ Fixnum
Maximum score that can be posted to this leaderboard.
Corresponds to the JSON property scoreMax
321 322 323 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 321 def score_max @score_max end |
#score_min ⇒ Fixnum
Minimum score that can be posted to this leaderboard.
Corresponds to the JSON property scoreMin
326 327 328 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 326 def score_min @score_min end |
#score_order ⇒ String
Corresponds to the JSON property scoreOrder
331 332 333 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 331 def score_order @score_order end |
#token ⇒ String
The token for this resource.
Corresponds to the JSON property token
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 |