Class: Google::Apis::GamesV1::RoomClientAddress

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 the client address when setting up a room.

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

Returns a new instance of RoomClientAddress.



3020
3021
3022
# File 'generated/google/apis/games_v1/classes.rb', line 3020

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


3013
3014
3015
# File 'generated/google/apis/games_v1/classes.rb', line 3013

def kind
  @kind
end

#xmpp_addressString

The XMPP address of the client on the Google Games XMPP network. Corresponds to the JSON property xmppAddress

Returns:

  • (String)


3018
3019
3020
# File 'generated/google/apis/games_v1/classes.rb', line 3018

def xmpp_address
  @xmpp_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3025
3026
3027
3028
# File 'generated/google/apis/games_v1/classes.rb', line 3025

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