Class: Google::Apis::GamesV1::GamePlayerToken

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb

Overview

Recall tokens for a game.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GamePlayerToken

Returns a new instance of GamePlayerToken.



1065
1066
1067
# File 'lib/google/apis/games_v1/classes.rb', line 1065

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

Instance Attribute Details

#application_idString

The application that this player identifier is for. Corresponds to the JSON property applicationId

Returns:

  • (String)


1058
1059
1060
# File 'lib/google/apis/games_v1/classes.rb', line 1058

def application_id
  @application_id
end

#tokenArray<Google::Apis::GamesV1::RecallToken>

Recall token data. Corresponds to the JSON property token



1063
1064
1065
# File 'lib/google/apis/games_v1/classes.rb', line 1063

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1070
1071
1072
1073
# File 'lib/google/apis/games_v1/classes.rb', line 1070

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