Class: Google::Apis::GamesV1::TurnBasedMatchData
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::TurnBasedMatchData
- 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
-
#data ⇒ String
The byte representation of the data (limited to 128 kB), as a Base64-encoded string with the URL_SAFE encoding option.
-
#data_available ⇒ Boolean
(also: #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.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TurnBasedMatchData
constructor
A new instance of TurnBasedMatchData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#data ⇒ String
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
4322 4323 4324 |
# File 'generated/google/apis/games_v1/classes.rb', line 4322 def data @data end |
#data_available ⇒ Boolean 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
4328 4329 4330 |
# File 'generated/google/apis/games_v1/classes.rb', line 4328 def data_available @data_available end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#turnBasedMatchData.
Corresponds to the JSON property kind
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 |