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



3300
3301
3302
# File 'generated/google/apis/games_v1/classes.rb', line 3300

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)


3293
3294
3295
# File 'generated/google/apis/games_v1/classes.rb', line 3293

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)


3298
3299
3300
# File 'generated/google/apis/games_v1/classes.rb', line 3298

def xmpp_address
  @xmpp_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3305
3306
3307
3308
# File 'generated/google/apis/games_v1/classes.rb', line 3305

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