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

This is a JSON template for an achievement configuration detail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

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

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

Returns:

  • (String)


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

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)


112
113
114
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 112

def kind
  @kind
end

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

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

Returns:

  • (Fixnum)


122
123
124
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 122

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)


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