Class: Google::Apis::GamesV1::AchievementUnlockResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#kindString

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

Returns:

  • (String)


256
257
258
# File 'generated/google/apis/games_v1/classes.rb', line 256

def kind
  @kind
end

#newly_unlockedBoolean 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

Returns:

  • (Boolean)


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