Class: Google::Apis::GamesV1::TurnBasedMatchResults
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::TurnBasedMatchResults
- 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
-
#data ⇒ Google::Apis::GamesV1::TurnBasedMatchDataRequest
This is a JSON template for sending a turn-based match data object.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#match_version ⇒ Fixnum
The version of the match being updated.
-
#results ⇒ Array<Google::Apis::GamesV1::ParticipantResult>
The match results for the participants in the match.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TurnBasedMatchResults
constructor
A new instance of TurnBasedMatchResults.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TurnBasedMatchResults
Returns a new instance of TurnBasedMatchResults.
4288 4289 4290 |
# File 'generated/google/apis/games_v1/classes.rb', line 4288 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ Google::Apis::GamesV1::TurnBasedMatchDataRequest
This is a JSON template for sending a turn-based match data object.
Corresponds to the JSON property data
4270 4271 4272 |
# File 'generated/google/apis/games_v1/classes.rb', line 4270 def data @data end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#turnBasedMatchResults.
Corresponds to the JSON property kind
4276 4277 4278 |
# File 'generated/google/apis/games_v1/classes.rb', line 4276 def kind @kind end |
#match_version ⇒ Fixnum
The version of the match being updated.
Corresponds to the JSON property matchVersion
4281 4282 4283 |
# File 'generated/google/apis/games_v1/classes.rb', line 4281 def match_version @match_version end |
#results ⇒ Array<Google::Apis::GamesV1::ParticipantResult>
The match results for the participants in the match.
Corresponds to the JSON property results
4286 4287 4288 |
# File 'generated/google/apis/games_v1/classes.rb', line 4286 def results @results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4293 4294 4295 4296 4297 4298 |
# File 'generated/google/apis/games_v1/classes.rb', line 4293 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 |