Class: Google::Apis::GamesV1::AchievementUnlockResponse
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::AchievementUnlockResponse
- 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
An achievement unlock response
Instance Attribute Summary collapse
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#newly_unlocked ⇒ Boolean
(also: #newly_unlocked?)
Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).
Instance Method Summary collapse
-
#initialize(**args) ⇒ AchievementUnlockResponse
constructor
A new instance of AchievementUnlockResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AchievementUnlockResponse
Returns a new instance of AchievementUnlockResponse.
265 266 267 |
# File 'generated/google/apis/games_v1/classes.rb', line 265 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#achievementUnlockResponse
.
Corresponds to the JSON property kind
256 257 258 |
# File 'generated/google/apis/games_v1/classes.rb', line 256 def kind @kind end |
#newly_unlocked ⇒ Boolean Also known as: newly_unlocked?
Whether this achievement was newly unlocked (that is, whether the unlock
request for the achievement was the first for the player).
Corresponds to the JSON property newlyUnlocked
262 263 264 |
# File 'generated/google/apis/games_v1/classes.rb', line 262 def newly_unlocked @newly_unlocked end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
270 271 272 273 |
# File 'generated/google/apis/games_v1/classes.rb', line 270 def update!(**args) @kind = args[:kind] if args.key?(:kind) @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) end |