class Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration
An achievement configuration resource.
Attributes
The type of the achievement. Corresponds to the JSON property `achievementType` @return [String]
An achievement configuration detail. Corresponds to the JSON property `draft` @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail]
The ID of the achievement. Corresponds to the JSON property `id` @return [String]
The initial state of the achievement. Corresponds to the JSON property `initialState` @return [String]
Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfiguration`. Corresponds to the JSON property `kind` @return [String]
An achievement configuration detail. Corresponds to the JSON property `published` @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail]
Steps to unlock. Only applicable to incremental achievements. Corresponds to the JSON property `stepsToUnlock` @return [Fixnum]
The token for this resource. Corresponds to the JSON property `token` @return [String]
Public Class Methods
# File lib/google/apis/games_configuration_v1configuration/classes.rb, line 70 def initialize(**args) update!(**args) end
Public Instance Methods
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