Class: Google::Apis::GamesV1::AchievementRevealResponse

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

This is a JSON template for an achievement reveal response

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) ⇒ AchievementRevealResponse

Returns a new instance of AchievementRevealResponse



213
214
215
# File 'generated/google/apis/games_v1/classes.rb', line 213

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#current_stateString

The current state of the achievement for which a reveal was attempted. This might be UNLOCKED if the achievement was already unlocked. Possible values are:

  • "REVEALED" - Achievement is revealed.
  • "UNLOCKED" - Achievement is unlocked. Corresponds to the JSON property currentState

Returns:

  • (String)


205
206
207
# File 'generated/google/apis/games_v1/classes.rb', line 205

def current_state
  @current_state
end

#kindString

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

Returns:

  • (String)


211
212
213
# File 'generated/google/apis/games_v1/classes.rb', line 211

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



218
219
220
221
# File 'generated/google/apis/games_v1/classes.rb', line 218

def update!(**args)
  @current_state = args[:current_state] if args.key?(:current_state)
  @kind = args[:kind] if args.key?(:kind)
end