class Google::Apis::GamesV1::Leaderboard

This is a JSON template for the Leaderboard resource.

Attributes

icon_url[RW]

The icon for the leaderboard. Corresponds to the JSON property `iconUrl` @return [String]

id[RW]

The leaderboard ID. Corresponds to the JSON property `id` @return [String]

is_icon_url_default[RW]

Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isIconUrlDefault` @return [Boolean]

is_icon_url_default?[RW]

Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property `isIconUrlDefault` @return [Boolean]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboard. Corresponds to the JSON property `kind` @return [String]

name[RW]

The name of the leaderboard. Corresponds to the JSON property `name` @return [String]

order[RW]

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

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 1478
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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