Class: Google::Apis::GamesV1::TurnBasedMatchModification
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::TurnBasedMatchModification
- 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 turn-based match modification metadata.
Instance Attribute Summary collapse
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#modified_timestamp_millis ⇒ Fixnum
The timestamp at which they modified the match, in milliseconds since the epoch in UTC.
-
#participant_id ⇒ String
The ID of the participant that modified the match.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TurnBasedMatchModification
constructor
A new instance of TurnBasedMatchModification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TurnBasedMatchModification
Returns a new instance of TurnBasedMatchModification.
4146 4147 4148 |
# File 'generated/google/apis/games_v1/classes.rb', line 4146 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#turnBasedMatchModification.
Corresponds to the JSON property kind
4133 4134 4135 |
# File 'generated/google/apis/games_v1/classes.rb', line 4133 def kind @kind end |
#modified_timestamp_millis ⇒ Fixnum
The timestamp at which they modified the match, in milliseconds since the
epoch in UTC.
Corresponds to the JSON property modifiedTimestampMillis
4139 4140 4141 |
# File 'generated/google/apis/games_v1/classes.rb', line 4139 def @modified_timestamp_millis end |
#participant_id ⇒ String
The ID of the participant that modified the match.
Corresponds to the JSON property participantId
4144 4145 4146 |
# File 'generated/google/apis/games_v1/classes.rb', line 4144 def participant_id @participant_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4151 4152 4153 4154 4155 |
# File 'generated/google/apis/games_v1/classes.rb', line 4151 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 |