Class: Google::Apis::GamesV1::Leaderboard
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::Leaderboard
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
The Leaderboard resource.
Instance Attribute Summary collapse
-
#icon_url ⇒ String
The icon for the leaderboard.
-
#id ⇒ String
The leaderboard ID.
-
#is_icon_url_default ⇒ Boolean
(also: #is_icon_url_default?)
Indicates whether the icon image being returned is a default image, or is game- provided.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#name ⇒ String
The name of the leaderboard.
-
#order ⇒ String
How scores are ordered.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Leaderboard
constructor
A new instance of Leaderboard.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Leaderboard
Returns a new instance of Leaderboard.
1400 1401 1402 |
# File 'generated/google/apis/games_v1/classes.rb', line 1400 def initialize(**args) update!(**args) end |
Instance Attribute Details
#icon_url ⇒ String
The icon for the leaderboard.
Corresponds to the JSON property iconUrl
1370 1371 1372 |
# File 'generated/google/apis/games_v1/classes.rb', line 1370 def icon_url @icon_url end |
#id ⇒ String
The leaderboard ID.
Corresponds to the JSON property id
1375 1376 1377 |
# File 'generated/google/apis/games_v1/classes.rb', line 1375 def id @id end |
#is_icon_url_default ⇒ Boolean 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
1381 1382 1383 |
# File 'generated/google/apis/games_v1/classes.rb', line 1381 def is_icon_url_default @is_icon_url_default end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#leaderboard
.
Corresponds to the JSON property kind
1388 1389 1390 |
# File 'generated/google/apis/games_v1/classes.rb', line 1388 def kind @kind end |
#name ⇒ String
The name of the leaderboard.
Corresponds to the JSON property name
1393 1394 1395 |
# File 'generated/google/apis/games_v1/classes.rb', line 1393 def name @name end |
#order ⇒ String
How scores are ordered.
Corresponds to the JSON property order
1398 1399 1400 |
# File 'generated/google/apis/games_v1/classes.rb', line 1398 def order @order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1405 1406 1407 1408 1409 1410 1411 1412 |
# File 'generated/google/apis/games_v1/classes.rb', line 1405 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 |