Class: Google::Apis::GamesV1::TurnBasedMatchRematch

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 a rematch response.

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

Returns a new instance of TurnBasedMatchRematch.



4527
4528
4529
# File 'generated/google/apis/games_v1/classes.rb', line 4527

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


4515
4516
4517
# File 'generated/google/apis/games_v1/classes.rb', line 4515

def kind
  @kind
end

#previous_matchGoogle::Apis::GamesV1::TurnBasedMatch

This is a JSON template for a turn-based match resource object. Corresponds to the JSON property previousMatch



4520
4521
4522
# File 'generated/google/apis/games_v1/classes.rb', line 4520

def previous_match
  @previous_match
end

#rematchGoogle::Apis::GamesV1::TurnBasedMatch

This is a JSON template for a turn-based match resource object. Corresponds to the JSON property rematch



4525
4526
4527
# File 'generated/google/apis/games_v1/classes.rb', line 4525

def rematch
  @rematch
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4532
4533
4534
4535
4536
# File 'generated/google/apis/games_v1/classes.rb', line 4532

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