Class: Google::Apis::GamesV1::AchievementDefinition
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::AchievementDefinition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb
Overview
An achievement definition object.
Instance Attribute Summary collapse
-
#achievement_type ⇒ String
The type of the achievement.
-
#description ⇒ String
The description of the achievement.
-
#experience_points ⇒ Fixnum
Experience points which will be earned when unlocking this achievement.
-
#formatted_total_steps ⇒ String
The total steps for an incremental achievement as a string.
-
#id ⇒ String
The ID of the achievement.
-
#initial_state ⇒ String
The initial state of the achievement.
-
#is_revealed_icon_url_default ⇒ Boolean
(also: #is_revealed_icon_url_default?)
Indicates whether the revealed icon image being returned is a default image, or is provided by the game.
-
#is_unlocked_icon_url_default ⇒ Boolean
(also: #is_unlocked_icon_url_default?)
Indicates whether the unlocked icon image being returned is a default image, or is game-provided.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#name ⇒ String
The name of the achievement.
-
#revealed_icon_url ⇒ String
The image URL for the revealed achievement icon.
-
#total_steps ⇒ Fixnum
The total steps for an incremental achievement.
-
#unlocked_icon_url ⇒ String
The image URL for the unlocked achievement icon.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AchievementDefinition
constructor
A new instance of AchievementDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AchievementDefinition
Returns a new instance of AchievementDefinition.
99 100 101 |
# File 'generated/google/apis/games_v1/classes.rb', line 99 def initialize(**args) update!(**args) end |
Instance Attribute Details
#achievement_type ⇒ String
The type of the achievement.
Corresponds to the JSON property achievementType
32 33 34 |
# File 'generated/google/apis/games_v1/classes.rb', line 32 def achievement_type @achievement_type end |
#description ⇒ String
The description of the achievement.
Corresponds to the JSON property description
37 38 39 |
# File 'generated/google/apis/games_v1/classes.rb', line 37 def description @description end |
#experience_points ⇒ Fixnum
Experience points which will be earned when unlocking this achievement.
Corresponds to the JSON property experiencePoints
42 43 44 |
# File 'generated/google/apis/games_v1/classes.rb', line 42 def experience_points @experience_points end |
#formatted_total_steps ⇒ String
The total steps for an incremental achievement as a string.
Corresponds to the JSON property formattedTotalSteps
47 48 49 |
# File 'generated/google/apis/games_v1/classes.rb', line 47 def formatted_total_steps @formatted_total_steps end |
#id ⇒ String
The ID of the achievement.
Corresponds to the JSON property id
52 53 54 |
# File 'generated/google/apis/games_v1/classes.rb', line 52 def id @id end |
#initial_state ⇒ String
The initial state of the achievement.
Corresponds to the JSON property initialState
57 58 59 |
# File 'generated/google/apis/games_v1/classes.rb', line 57 def initial_state @initial_state end |
#is_revealed_icon_url_default ⇒ Boolean Also known as: is_revealed_icon_url_default?
Indicates whether the revealed icon image being returned is a default image,
or is provided by the game.
Corresponds to the JSON property isRevealedIconUrlDefault
63 64 65 |
# File 'generated/google/apis/games_v1/classes.rb', line 63 def is_revealed_icon_url_default @is_revealed_icon_url_default end |
#is_unlocked_icon_url_default ⇒ Boolean Also known as: is_unlocked_icon_url_default?
Indicates whether the unlocked icon image being returned is a default image,
or is game-provided.
Corresponds to the JSON property isUnlockedIconUrlDefault
70 71 72 |
# File 'generated/google/apis/games_v1/classes.rb', line 70 def is_unlocked_icon_url_default @is_unlocked_icon_url_default end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#achievementDefinition
.
Corresponds to the JSON property kind
77 78 79 |
# File 'generated/google/apis/games_v1/classes.rb', line 77 def kind @kind end |
#name ⇒ String
The name of the achievement.
Corresponds to the JSON property name
82 83 84 |
# File 'generated/google/apis/games_v1/classes.rb', line 82 def name @name end |
#revealed_icon_url ⇒ String
The image URL for the revealed achievement icon.
Corresponds to the JSON property revealedIconUrl
87 88 89 |
# File 'generated/google/apis/games_v1/classes.rb', line 87 def revealed_icon_url @revealed_icon_url end |
#total_steps ⇒ Fixnum
The total steps for an incremental achievement.
Corresponds to the JSON property totalSteps
92 93 94 |
# File 'generated/google/apis/games_v1/classes.rb', line 92 def total_steps @total_steps end |
#unlocked_icon_url ⇒ String
The image URL for the unlocked achievement icon.
Corresponds to the JSON property unlockedIconUrl
97 98 99 |
# File 'generated/google/apis/games_v1/classes.rb', line 97 def unlocked_icon_url @unlocked_icon_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'generated/google/apis/games_v1/classes.rb', line 104 def update!(**args) @achievement_type = args[:achievement_type] if args.key?(:achievement_type) @description = args[:description] if args.key?(:description) @experience_points = args[:experience_points] if args.key?(:experience_points) @formatted_total_steps = args[:formatted_total_steps] if args.key?(:formatted_total_steps) @id = args[:id] if args.key?(:id) @initial_state = args[:initial_state] if args.key?(:initial_state) @is_revealed_icon_url_default = args[:is_revealed_icon_url_default] if args.key?(:is_revealed_icon_url_default) @is_unlocked_icon_url_default = args[:is_unlocked_icon_url_default] if args.key?(:is_unlocked_icon_url_default) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @revealed_icon_url = args[:revealed_icon_url] if args.key?(:revealed_icon_url) @total_steps = args[:total_steps] if args.key?(:total_steps) @unlocked_icon_url = args[:unlocked_icon_url] if args.key?(:unlocked_icon_url) end |