Class: Google::Apis::GamesV1::TurnBasedMatchRematch
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::TurnBasedMatchRematch
- 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 a rematch response.
Instance Attribute Summary collapse
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#previous_match ⇒ Google::Apis::GamesV1::TurnBasedMatch
This is a JSON template for a turn-based match resource object.
-
#rematch ⇒ Google::Apis::GamesV1::TurnBasedMatch
This is a JSON template for a turn-based match resource object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TurnBasedMatchRematch
constructor
A new instance of TurnBasedMatchRematch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TurnBasedMatchRematch
Returns a new instance of TurnBasedMatchRematch.
4244 4245 4246 |
# File 'generated/google/apis/games_v1/classes.rb', line 4244 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#turnBasedMatchRematch.
Corresponds to the JSON property kind
4232 4233 4234 |
# File 'generated/google/apis/games_v1/classes.rb', line 4232 def kind @kind end |
#previous_match ⇒ Google::Apis::GamesV1::TurnBasedMatch
This is a JSON template for a turn-based match resource object.
Corresponds to the JSON property previousMatch
4237 4238 4239 |
# File 'generated/google/apis/games_v1/classes.rb', line 4237 def previous_match @previous_match end |
#rematch ⇒ Google::Apis::GamesV1::TurnBasedMatch
This is a JSON template for a turn-based match resource object.
Corresponds to the JSON property rematch
4242 4243 4244 |
# File 'generated/google/apis/games_v1/classes.rb', line 4242 def rematch @rematch end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4249 4250 4251 4252 4253 |
# File 'generated/google/apis/games_v1/classes.rb', line 4249 def update!(**args) @kind = args[:kind] if args.key?(:kind) @previous_match = args[:previous_match] if args.key?(:previous_match) @rematch = args[:rematch] if args.key?(:rematch) end |