Class: Google::Apis::GamesV1::ApplicationPlayerId

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

Primary scoped player identifier for an application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApplicationPlayerId

Returns a new instance of ApplicationPlayerId.



570
571
572
# File 'lib/google/apis/games_v1/classes.rb', line 570

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)


563
564
565
# File 'lib/google/apis/games_v1/classes.rb', line 563

def application_id
  @application_id
end

#player_idString

The player identifier for the application. Corresponds to the JSON property playerId

Returns:

  • (String)


568
569
570
# File 'lib/google/apis/games_v1/classes.rb', line 568

def player_id
  @player_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



575
576
577
578
# File 'lib/google/apis/games_v1/classes.rb', line 575

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