Class: Google::Apis::GamesV1::TurnBasedMatchList

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 list of turn-based matches.

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

Returns a new instance of TurnBasedMatchList



4400
4401
4402
# File 'generated/google/apis/games_v1/classes.rb', line 4400

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

Instance Attribute Details

#itemsArray<Google::Apis::GamesV1::TurnBasedMatch>

The matches. Corresponds to the JSON property items



4387
4388
4389
# File 'generated/google/apis/games_v1/classes.rb', line 4387

def items
  @items
end

#kindString

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

Returns:

  • (String)


4393
4394
4395
# File 'generated/google/apis/games_v1/classes.rb', line 4393

def kind
  @kind
end

#next_page_tokenString

The pagination token for the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


4398
4399
4400
# File 'generated/google/apis/games_v1/classes.rb', line 4398

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4405
4406
4407
4408
4409
# File 'generated/google/apis/games_v1/classes.rb', line 4405

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end