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



4340
4341
4342
# File 'generated/google/apis/games_v1/classes.rb', line 4340

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 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4325
4326
4327
# File 'generated/google/apis/games_v1/classes.rb', line 4325

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)


4331
4332
4333
# File 'generated/google/apis/games_v1/classes.rb', line 4331

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)


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

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4345
4346
4347
4348
4349
# File 'generated/google/apis/games_v1/classes.rb', line 4345

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