Class: Google::Apis::GamesV1::Leaderboard

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb

Overview

The Leaderboard resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Leaderboard

Returns a new instance of Leaderboard.



1370
1371
1372
# File 'lib/google/apis/games_v1/classes.rb', line 1370

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#icon_urlString

The icon for the leaderboard. Corresponds to the JSON property iconUrl

Returns:

  • (String)


1340
1341
1342
# File 'lib/google/apis/games_v1/classes.rb', line 1340

def icon_url
  @icon_url
end

#idString

The leaderboard ID. Corresponds to the JSON property id

Returns:

  • (String)


1345
1346
1347
# File 'lib/google/apis/games_v1/classes.rb', line 1345

def id
  @id
end

#is_icon_url_defaultBoolean Also known as: is_icon_url_default?

Indicates whether the icon image being returned is a default image, or is game- provided. Corresponds to the JSON property isIconUrlDefault

Returns:

  • (Boolean)


1351
1352
1353
# File 'lib/google/apis/games_v1/classes.rb', line 1351

def is_icon_url_default
  @is_icon_url_default
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboard. Corresponds to the JSON property kind

Returns:

  • (String)


1358
1359
1360
# File 'lib/google/apis/games_v1/classes.rb', line 1358

def kind
  @kind
end

#nameString

The name of the leaderboard. Corresponds to the JSON property name

Returns:

  • (String)


1363
1364
1365
# File 'lib/google/apis/games_v1/classes.rb', line 1363

def name
  @name
end

#orderString

How scores are ordered. Corresponds to the JSON property order

Returns:

  • (String)


1368
1369
1370
# File 'lib/google/apis/games_v1/classes.rb', line 1368

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1375
1376
1377
1378
1379
1380
1381
1382
# 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