class Google::Apis::GamesV1::UpdateAchievementResponse

This is a JSON template for an achievement update response.

Attributes

achievement_id[RW]

The achievement this update is was applied to. Corresponds to the JSON property `achievementId` @return [String]

current_state[RW]

The current state of the achievement. Possible values are:

  • “HIDDEN” - Achievement is hidden.

  • “REVEALED” - Achievement is revealed.

  • “UNLOCKED” - Achievement is unlocked.

Corresponds to the JSON property `currentState` @return [String]

current_steps[RW]

The current steps recorded for this achievement if it is incremental. Corresponds to the JSON property `currentSteps` @return [Fixnum]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateResponse. 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]

update_occurred[RW]

Whether the requested updates actually affected the achievement. Corresponds to the JSON property `updateOccurred` @return [Boolean]

update_occurred?[RW]

Whether the requested updates actually affected the achievement. Corresponds to the JSON property `updateOccurred` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 430
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 435
def update!(**args)
  @achievement_id = args[:achievement_id] if args.key?(:achievement_id)
  @current_state = args[:current_state] if args.key?(:current_state)
  @current_steps = args[:current_steps] if args.key?(:current_steps)
  @kind = args[:kind] if args.key?(:kind)
  @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked)
  @update_occurred = args[:update_occurred] if args.key?(:update_occurred)
end