class Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration
This is a JSON template for an achievement configuration resource.
Attributes
The type of the achievement. Possible values are:
-
“STANDARD” - Achievement is either locked or unlocked.
-
“INCREMENTAL” - Achievement is incremental.
Corresponds to the JSON property `achievementType` @return [String]
This is a JSON template for 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. Possible values are:
-
“HIDDEN” - Achievement is hidden.
-
“REVEALED” - Achievement is revealed.
-
“UNLOCKED” - Achievement is unlocked.
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]
This is a JSON template for 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 generated/google/apis/games_configuration_v1configuration/classes.rb, line 77 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_configuration_v1configuration/classes.rb, line 82 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