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.



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

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


3096
3097
3098
# File 'generated/google/apis/games_v1/classes.rb', line 3096

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



3101
3102
3103
# File 'generated/google/apis/games_v1/classes.rb', line 3101

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)


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

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



3112
3113
3114
# File 'generated/google/apis/games_v1/classes.rb', line 3112

def network_diagnostics
  @network_diagnostics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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