Class: Google::Apis::GamesV1::RoomModification

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 room modification metadata.

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

Returns a new instance of RoomModification.



3312
3313
3314
# File 'generated/google/apis/games_v1/classes.rb', line 3312

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#modified_timestamp_millisFixnum

The timestamp at which they modified the room, in milliseconds since the epoch in UTC. Corresponds to the JSON property modifiedTimestampMillis

Returns:

  • (Fixnum)


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

def modified_timestamp_millis
  @modified_timestamp_millis
end

#participant_idString

The ID of the participant that modified the room. Corresponds to the JSON property participantId

Returns:

  • (String)


3310
3311
3312
# File 'generated/google/apis/games_v1/classes.rb', line 3310

def participant_id
  @participant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3317
3318
3319
3320
3321
# File 'generated/google/apis/games_v1/classes.rb', line 3317

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