Class: Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#descriptionGoogle::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_urlString

The icon url of this achievement. Writes to this field are ignored. Corresponds to the JSON property iconUrl

Returns:

  • (String)


99
100
101
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 99

def icon_url
  @icon_url
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#achievementConfigurationDetail. Corresponds to the JSON property kind

Returns:

  • (String)


105
106
107
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 105

def kind
  @kind
end

#nameGoogle::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_valueFixnum

Point value for the achievement. Corresponds to the JSON property pointValue

Returns:

  • (Fixnum)


115
116
117
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 115

def point_value
  @point_value
end

#sort_rankFixnum

The sort rank of this achievement. Writes to this field are ignored. Corresponds to the JSON property sortRank

Returns:

  • (Fixnum)


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