class Google::Apis::GamesV1::Leaderboard
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. Corresponds to the JSON property `order` @return [String]
Public Class Methods
# File lib/google/apis/games_v1/classes.rb, line 1370 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/games_v1/classes.rb, line 1375 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