Class: Google::Apis::GamesV1::TurnBasedMatchResults

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 turn-based match results object.

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

Returns a new instance of TurnBasedMatchResults.



4564
4565
4566
# File 'generated/google/apis/games_v1/classes.rb', line 4564

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

Instance Attribute Details

#dataGoogle::Apis::GamesV1::TurnBasedMatchDataRequest

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



4546
4547
4548
# File 'generated/google/apis/games_v1/classes.rb', line 4546

def data
  @data
end

#kindString

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

Returns:

  • (String)


4552
4553
4554
# File 'generated/google/apis/games_v1/classes.rb', line 4552

def kind
  @kind
end

#match_versionFixnum

The version of the match being updated. Corresponds to the JSON property matchVersion

Returns:

  • (Fixnum)


4557
4558
4559
# File 'generated/google/apis/games_v1/classes.rb', line 4557

def match_version
  @match_version
end

#resultsArray<Google::Apis::GamesV1::ParticipantResult>

The match results for the participants in the match. Corresponds to the JSON property results



4562
4563
4564
# File 'generated/google/apis/games_v1/classes.rb', line 4562

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4569
4570
4571
4572
4573
4574
# File 'generated/google/apis/games_v1/classes.rb', line 4569

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @kind = args[:kind] if args.key?(:kind)
  @match_version = args[:match_version] if args.key?(:match_version)
  @results = args[:results] if args.key?(:results)
end