Class: Google::Apis::GamesV1::InstanceWebDetails

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 the Web details resource.

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) ⇒ InstanceWebDetails

Returns a new instance of InstanceWebDetails.



1424
1425
1426
# File 'generated/google/apis/games_v1/classes.rb', line 1424

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

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

Returns:

  • (String)


1411
1412
1413
# File 'generated/google/apis/games_v1/classes.rb', line 1411

def kind
  @kind
end

#launch_urlString

Launch URL for the game. Corresponds to the JSON property launchUrl

Returns:

  • (String)


1416
1417
1418
# File 'generated/google/apis/games_v1/classes.rb', line 1416

def launch_url
  @launch_url
end

#preferredBoolean Also known as: preferred?

Indicates that this instance is the default for new installations. Corresponds to the JSON property preferred

Returns:

  • (Boolean)


1421
1422
1423
# File 'generated/google/apis/games_v1/classes.rb', line 1421

def preferred
  @preferred
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1429
1430
1431
1432
1433
# File 'generated/google/apis/games_v1/classes.rb', line 1429

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