Class: Google::Apis::GamesV1::ImageAsset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/games_v1/classes.rb,
lib/google/apis/games_v1/representations.rb,
lib/google/apis/games_v1/representations.rb

Overview

An image asset object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageAsset

Returns a new instance of ImageAsset.



1223
1224
1225
# File 'lib/google/apis/games_v1/classes.rb', line 1223

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

Instance Attribute Details

#heightFixnum

The height of the asset. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1200
1201
1202
# File 'lib/google/apis/games_v1/classes.rb', line 1200

def height
  @height
end

#kindString

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

Returns:

  • (String)


1206
1207
1208
# File 'lib/google/apis/games_v1/classes.rb', line 1206

def kind
  @kind
end

#nameString

The name of the asset. Corresponds to the JSON property name

Returns:

  • (String)


1211
1212
1213
# File 'lib/google/apis/games_v1/classes.rb', line 1211

def name
  @name
end

#urlString

The URL of the asset. Corresponds to the JSON property url

Returns:

  • (String)


1216
1217
1218
# File 'lib/google/apis/games_v1/classes.rb', line 1216

def url
  @url
end

#widthFixnum

The width of the asset. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1221
1222
1223
# File 'lib/google/apis/games_v1/classes.rb', line 1221

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1228
1229
1230
1231
1232
1233
1234
# File 'lib/google/apis/games_v1/classes.rb', line 1228

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @url = args[:url] if args.key?(:url)
  @width = args[:width] if args.key?(:width)
end