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

An achievement reveal response

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AchievementRevealResponse

Returns a new instance of AchievementRevealResponse.



203
204
205
# File 'generated/google/apis/games_v1/classes.rb', line 203

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. Corresponds to the JSON property currentState

Returns:

  • (String)


195
196
197
# File 'generated/google/apis/games_v1/classes.rb', line 195

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)


201
202
203
# File 'generated/google/apis/games_v1/classes.rb', line 201

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



208
209
210
211
# File 'generated/google/apis/games_v1/classes.rb', line 208

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