Class: Google::Apis::GamesV1::TurnBasedMatchDataRequest

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 sending 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) ⇒ TurnBasedMatchDataRequest

Returns a new instance of TurnBasedMatchDataRequest.



4082
4083
4084
# File 'generated/google/apis/games_v1/classes.rb', line 4082

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)


4074
4075
4076
# File 'generated/google/apis/games_v1/classes.rb', line 4074

def data
  @data
end

#kindString

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

Returns:

  • (String)


4080
4081
4082
# File 'generated/google/apis/games_v1/classes.rb', line 4080

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4087
4088
4089
4090
# File 'generated/google/apis/games_v1/classes.rb', line 4087

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