Class: Google::Apis::GamesV1::GamePlayerToken
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::GamePlayerToken
- 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
-
#application_id ⇒ String
The application that this player identifier is for.
-
#token ⇒ Array<Google::Apis::GamesV1::RecallToken>
Recall token data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GamePlayerToken
constructor
A new instance of GamePlayerToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
The application that this player identifier is for.
Corresponds to the JSON property applicationId
1058 1059 1060 |
# File 'lib/google/apis/games_v1/classes.rb', line 1058 def application_id @application_id end |
#token ⇒ Array<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 |