Class: Google::Apis::GamesV1::TurnBasedMatchData

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 data 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) ⇒ TurnBasedMatchData

Returns a new instance of TurnBasedMatchData.


4337
4338
4339
# File 'generated/google/apis/games_v1/classes.rb', line 4337

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

Instance Attribute Details

#dataString

The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option. Corresponds to the JSON property data

Returns:

  • (String)

4322
4323
4324
# File 'generated/google/apis/games_v1/classes.rb', line 4322

def data
  @data
end

#data_availableBoolean Also known as: data_available?

True if this match has data available but it wasn't returned in a list response; fetching the match individually will retrieve this data. Corresponds to the JSON property dataAvailable

Returns:

  • (Boolean)

4328
4329
4330
# File 'generated/google/apis/games_v1/classes.rb', line 4328

def data_available
  @data_available
end

#kindString

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

Returns:

  • (String)

4335
4336
4337
# File 'generated/google/apis/games_v1/classes.rb', line 4335

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4342
4343
4344
4345
4346
# File 'generated/google/apis/games_v1/classes.rb', line 4342

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