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.



4060
4061
4062
# File 'generated/google/apis/games_v1/classes.rb', line 4060

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)


4045
4046
4047
# File 'generated/google/apis/games_v1/classes.rb', line 4045

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)


4051
4052
4053
# File 'generated/google/apis/games_v1/classes.rb', line 4051

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)


4058
4059
4060
# File 'generated/google/apis/games_v1/classes.rb', line 4058

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4065
4066
4067
4068
4069
# File 'generated/google/apis/games_v1/classes.rb', line 4065

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