Class: Google::Apis::GamesV1::JoinRoomRequest

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 a join room request.

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

Returns a new instance of JoinRoomRequest



3401
3402
3403
# File 'generated/google/apis/games_v1/classes.rb', line 3401

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

Instance Attribute Details

#capabilitiesArray<String>

The capabilities that this client supports for realtime communication. Corresponds to the JSON property capabilities

Returns:

  • (Array<String>)


3383
3384
3385
# File 'generated/google/apis/games_v1/classes.rb', line 3383

def capabilities
  @capabilities
end

#client_addressGoogle::Apis::GamesV1::RoomClientAddress

This is a JSON template for the client address when setting up a room. Corresponds to the JSON property clientAddress



3388
3389
3390
# File 'generated/google/apis/games_v1/classes.rb', line 3388

def client_address
  @client_address
end

#kindString

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

Returns:

  • (String)


3394
3395
3396
# File 'generated/google/apis/games_v1/classes.rb', line 3394

def kind
  @kind
end

#network_diagnosticsGoogle::Apis::GamesV1::NetworkDiagnostics

This is a JSON template for network diagnostics reported for a client. Corresponds to the JSON property networkDiagnostics



3399
3400
3401
# File 'generated/google/apis/games_v1/classes.rb', line 3399

def network_diagnostics
  @network_diagnostics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3406
3407
3408
3409
3410
3411
# File 'generated/google/apis/games_v1/classes.rb', line 3406

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