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
This is a JSON template for an achievement configuration detail.
Instance Attribute Summary collapse
-
#description ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
This is a JSON template for 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
This is a JSON template for 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AchievementConfigurationDetail
Returns a new instance of AchievementConfigurationDetail
129 130 131 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
This is a JSON template for a localized string bundle resource.
Corresponds to the JSON property description
101 102 103 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 101 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
106 107 108 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 106 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
112 113 114 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 112 def kind @kind end |
#name ⇒ Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle
This is a JSON template for a localized string bundle resource.
Corresponds to the JSON property name
117 118 119 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 117 def name @name end |
#point_value ⇒ Fixnum
Point value for the achievement.
Corresponds to the JSON property pointValue
122 123 124 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 122 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
127 128 129 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 127 def sort_rank @sort_rank end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
134 135 136 137 138 139 140 141 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 134 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 |