class Google::Apis::GamesV1::AchievementUnlockResponse
This is a JSON template for 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 generated/google/apis/games_v1/classes.rb, line 275 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 280 def update!(**args) @kind = args[:kind] if args.key?(:kind) @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) end