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.



3121
3122
3123
# File 'generated/google/apis/games_v1/classes.rb', line 3121

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


3103
3104
3105
# File 'generated/google/apis/games_v1/classes.rb', line 3103

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



3108
3109
3110
# File 'generated/google/apis/games_v1/classes.rb', line 3108

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)


3114
3115
3116
# File 'generated/google/apis/games_v1/classes.rb', line 3114

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



3119
3120
3121
# File 'generated/google/apis/games_v1/classes.rb', line 3119

def network_diagnostics
  @network_diagnostics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3126
3127
3128
3129
3130
3131
# File 'generated/google/apis/games_v1/classes.rb', line 3126

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