Class: Google::Apis::GamesV1::Instance
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::Instance
 
- 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 the Instance resource.
Instance Attribute Summary collapse
- 
  
    
      #acquisition_uri  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    URI which shows where a user can acquire this instance. 
- 
  
    
      #android_instance  ⇒ Google::Apis::GamesV1::InstanceAndroidDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for the Android instance details resource. 
- 
  
    
      #ios_instance  ⇒ Google::Apis::GamesV1::InstanceIosDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for the iOS details resource. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Localized display name. 
- 
  
    
      #platform_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The platform type. 
- 
  
    
      #realtime_play  ⇒ Boolean 
    
    
      (also: #realtime_play?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Flag to show if this game instance supports realtime play. 
- 
  
    
      #turn_based_play  ⇒ Boolean 
    
    
      (also: #turn_based_play?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Flag to show if this game instance supports turn based play. 
- 
  
    
      #web_instance  ⇒ Google::Apis::GamesV1::InstanceWebDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for the Web details resource. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Instance 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Instance. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Instance
Returns a new instance of Instance
| 1283 1284 1285 | # File 'generated/google/apis/games_v1/classes.rb', line 1283 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#acquisition_uri ⇒ String
URI which shows where a user can acquire this instance.
Corresponds to the JSON property acquisitionUri
| 1234 1235 1236 | # File 'generated/google/apis/games_v1/classes.rb', line 1234 def acquisition_uri @acquisition_uri end | 
#android_instance ⇒ Google::Apis::GamesV1::InstanceAndroidDetails
This is a JSON template for the Android instance details resource.
Corresponds to the JSON property androidInstance
| 1239 1240 1241 | # File 'generated/google/apis/games_v1/classes.rb', line 1239 def android_instance @android_instance end | 
#ios_instance ⇒ Google::Apis::GamesV1::InstanceIosDetails
This is a JSON template for the iOS details resource.
Corresponds to the JSON property iosInstance
| 1244 1245 1246 | # File 'generated/google/apis/games_v1/classes.rb', line 1244 def ios_instance @ios_instance end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#instance.
Corresponds to the JSON property kind
| 1250 1251 1252 | # File 'generated/google/apis/games_v1/classes.rb', line 1250 def kind @kind end | 
#name ⇒ String
Localized display name.
Corresponds to the JSON property name
| 1255 1256 1257 | # File 'generated/google/apis/games_v1/classes.rb', line 1255 def name @name end | 
#platform_type ⇒ String
The platform type. Possible values are:
- "ANDROID" - Instance is for Android.
- "IOS" - Instance is for iOS
- "WEB_APP" - Instance is for Web App.
Corresponds to the JSON property platformType
| 1264 1265 1266 | # File 'generated/google/apis/games_v1/classes.rb', line 1264 def platform_type @platform_type end | 
#realtime_play ⇒ Boolean Also known as: realtime_play?
Flag to show if this game instance supports realtime play.
Corresponds to the JSON property realtimePlay
| 1269 1270 1271 | # File 'generated/google/apis/games_v1/classes.rb', line 1269 def realtime_play @realtime_play end | 
#turn_based_play ⇒ Boolean Also known as: turn_based_play?
Flag to show if this game instance supports turn based play.
Corresponds to the JSON property turnBasedPlay
| 1275 1276 1277 | # File 'generated/google/apis/games_v1/classes.rb', line 1275 def turn_based_play @turn_based_play end | 
#web_instance ⇒ Google::Apis::GamesV1::InstanceWebDetails
This is a JSON template for the Web details resource.
Corresponds to the JSON property webInstance
| 1281 1282 1283 | # File 'generated/google/apis/games_v1/classes.rb', line 1281 def web_instance @web_instance end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 | # 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 |