class Google::Apis::GamesV1::Leaderboard
This is a JSON template for the Leaderboard resource.
Attributes
The icon for the leaderboard. Corresponds to the JSON property `iconUrl` @return [String]
The leaderboard ID. Corresponds to the JSON property `id` @return [String]
Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isIconUrlDefault` @return [Boolean]
Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isIconUrlDefault` @return [Boolean]
Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboard. Corresponds to the JSON property `kind` @return [String]
The name of the leaderboard. Corresponds to the JSON property `name` @return [String]
How scores are ordered. Possible values are:
-
“LARGER_IS_BETTER” - Larger values are better; scores are sorted in
descending order.
-
“SMALLER_IS_BETTER” - Smaller values are better; scores are sorted in
ascending order. Corresponds to the JSON property `order` @return [String]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 1478 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 1483 def update!(**args) @icon_url = args[:icon_url] if args.key?(:icon_url) @id = args[:id] if args.key?(:id) @is_icon_url_default = args[:is_icon_url_default] if args.key?(:is_icon_url_default) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @order = args[:order] if args.key?(:order) end