class Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration

An achievement configuration resource.

Attributes

achievement_type[RW]

The type of the achievement. Corresponds to the JSON property `achievementType` @return [String]

draft[RW]

An achievement configuration detail. Corresponds to the JSON property `draft` @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail]

id[RW]

The ID of the achievement. Corresponds to the JSON property `id` @return [String]

initial_state[RW]

The initial state of the achievement. Corresponds to the JSON property `initialState` @return [String]

kind[RW]

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

published[RW]

An achievement configuration detail. Corresponds to the JSON property `published` @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail]

steps_to_unlock[RW]

Steps to unlock. Only applicable to incremental achievements. Corresponds to the JSON property `stepsToUnlock` @return [Fixnum]

token[RW]

The token for this resource. Corresponds to the JSON property `token` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/games_configuration_v1configuration/classes.rb, line 70
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_configuration_v1configuration/classes.rb, line 75
def update!(**args)
  @achievement_type = args[:achievement_type] if args.key?(:achievement_type)
  @draft = args[:draft] if args.key?(:draft)
  @id = args[:id] if args.key?(:id)
  @initial_state = args[:initial_state] if args.key?(:initial_state)
  @kind = args[:kind] if args.key?(:kind)
  @published = args[:published] if args.key?(:published)
  @steps_to_unlock = args[:steps_to_unlock] if args.key?(:steps_to_unlock)
  @token = args[:token] if args.key?(:token)
end