Class: Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail
- Inherits:
-
Object
- Object
- Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/games_configuration_v1configuration/classes.rb,
generated/google/apis/games_configuration_v1configuration/representations.rb,
generated/google/apis/games_configuration_v1configuration/representations.rb
Overview
An achievement configuration detail.
Instance Attribute Summary collapse
-
#description ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
A localized string bundle resource.
-
#icon_url ⇒ String
The icon url of this achievement.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#name ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
A localized string bundle resource.
-
#point_value ⇒ Fixnum
Point value for the achievement.
-
#sort_rank ⇒ Fixnum
The sort rank of this achievement.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AchievementConfigurationDetail
constructor
A new instance of AchievementConfigurationDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AchievementConfigurationDetail
Returns a new instance of AchievementConfigurationDetail.
122 123 124 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 122 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
A localized string bundle resource.
Corresponds to the JSON property description
94 95 96 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 94 def description @description end |
#icon_url ⇒ String
The icon url of this achievement. Writes to this field are ignored.
Corresponds to the JSON property iconUrl
99 100 101 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 99 def icon_url @icon_url end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string gamesConfiguration#achievementConfigurationDetail
.
Corresponds to the JSON property kind
105 106 107 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 105 def kind @kind end |
#name ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
A localized string bundle resource.
Corresponds to the JSON property name
110 111 112 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 110 def name @name end |
#point_value ⇒ Fixnum
Point value for the achievement.
Corresponds to the JSON property pointValue
115 116 117 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 115 def point_value @point_value end |
#sort_rank ⇒ Fixnum
The sort rank of this achievement. Writes to this field are ignored.
Corresponds to the JSON property sortRank
120 121 122 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 120 def sort_rank @sort_rank end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
127 128 129 130 131 132 133 134 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 127 def update!(**args) @description = args[:description] if args.key?(:description) @icon_url = args[:icon_url] if args.key?(:icon_url) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @point_value = args[:point_value] if args.key?(:point_value) @sort_rank = args[:sort_rank] if args.key?(:sort_rank) end |