class Google::Apis::GamesV1::AchievementUnlockResponse

An achievement unlock response

Attributes

kind[RW]

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

newly_unlocked[RW]

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` @return [Boolean]

newly_unlocked?[RW]

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` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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