Class: Google::Apis::GamesV1::RoomP2PStatuses
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::RoomP2PStatuses
- 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
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#updates ⇒ Array<Google::Apis::GamesV1::RoomP2PStatus>
The updates for the peers.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RoomP2PStatuses
constructor
A new instance of RoomP2PStatuses.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RoomP2PStatuses
Returns a new instance of RoomP2PStatuses
3689 3690 3691 |
# File 'generated/google/apis/games_v1/classes.rb', line 3689 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#roomP2PStatuses.
Corresponds to the JSON property kind
3682 3683 3684 |
# File 'generated/google/apis/games_v1/classes.rb', line 3682 def kind @kind end |
#updates ⇒ Array<Google::Apis::GamesV1::RoomP2PStatus>
The updates for the peers.
Corresponds to the JSON property updates
3687 3688 3689 |
# File 'generated/google/apis/games_v1/classes.rb', line 3687 def updates @updates end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3694 3695 3696 3697 |
# File 'generated/google/apis/games_v1/classes.rb', line 3694 def update!(**args) @kind = args[:kind] if args.key?(:kind) @updates = args[:updates] if args.key?(:updates) end |