Class: Google::Apis::GamesV1::RoomP2PStatuses

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 an update on the status of peers in 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) ⇒ RoomP2PStatuses

Returns a new instance of RoomP2PStatuses.



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

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#updatesArray<Google::Apis::GamesV1::RoomP2PStatus>

The updates for the peers. Corresponds to the JSON property updates



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

def updates
  @updates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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