class Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration
This is a JSON template for an leaderboard configuration resource.
Attributes
This is a JSON template for a leaderboard configuration detail. Corresponds to the JSON property `draft` @return [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail]
The ID of the leaderboard. Corresponds to the JSON property `id` @return [String]
Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#leaderboardConfiguration. Corresponds to the JSON property `kind` @return [String]
This is a JSON template for a leaderboard configuration detail. Corresponds to the JSON property `published` @return [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail]
Maximum score that can be posted to this leaderboard. Corresponds to the JSON property `scoreMax` @return [String]
Minimum score that can be posted to this leaderboard. Corresponds to the JSON property `scoreMin` @return [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` @return [String]
The token for this resource. Corresponds to the JSON property `token` @return [String]
Public Class Methods
# File generated/google/apis/games_configuration_v1configuration/classes.rb, line 354 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# 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