class Google::Apis::GamesV1::Instance

This is a JSON template for the Instance resource.

Attributes

acquisition_uri[RW]

URI which shows where a user can acquire this instance. Corresponds to the JSON property `acquisitionUri` @return [String]

android_instance[RW]

This is a JSON template for the Android instance details resource. Corresponds to the JSON property `androidInstance` @return [Google::Apis::GamesV1::InstanceAndroidDetails]

ios_instance[RW]

This is a JSON template for the iOS details resource. Corresponds to the JSON property `iosInstance` @return [Google::Apis::GamesV1::InstanceIosDetails]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#instance. Corresponds to the JSON property `kind` @return [String]

name[RW]

Localized display name. Corresponds to the JSON property `name` @return [String]

platform_type[RW]

The platform type. Possible values are:

Corresponds to the JSON property `platformType` @return [String]

realtime_play[RW]

Flag to show if this game instance supports realtime play. Corresponds to the JSON property `realtimePlay` @return [Boolean]

realtime_play?[RW]

Flag to show if this game instance supports realtime play. Corresponds to the JSON property `realtimePlay` @return [Boolean]

turn_based_play[RW]

Flag to show if this game instance supports turn based play. Corresponds to the JSON property `turnBasedPlay` @return [Boolean]

turn_based_play?[RW]

Flag to show if this game instance supports turn based play. Corresponds to the JSON property `turnBasedPlay` @return [Boolean]

web_instance[RW]

This is a JSON template for the Web details resource. Corresponds to the JSON property `webInstance` @return [Google::Apis::GamesV1::InstanceWebDetails]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 1283
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 1288
def update!(**args)
  @acquisition_uri = args[:acquisition_uri] if args.key?(:acquisition_uri)
  @android_instance = args[:android_instance] if args.key?(:android_instance)
  @ios_instance = args[:ios_instance] if args.key?(:ios_instance)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @platform_type = args[:platform_type] if args.key?(:platform_type)
  @realtime_play = args[:realtime_play] if args.key?(:realtime_play)
  @turn_based_play = args[:turn_based_play] if args.key?(:turn_based_play)
  @web_instance = args[:web_instance] if args.key?(:web_instance)
end