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

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 an image asset object.

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

Returns a new instance of ImageAsset



1213
1214
1215
# File 'generated/google/apis/games_v1/classes.rb', line 1213

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

Instance Attribute Details

#heightFixnum

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

Returns:

  • (Fixnum)


1190
1191
1192
# File 'generated/google/apis/games_v1/classes.rb', line 1190

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)


1196
1197
1198
# File 'generated/google/apis/games_v1/classes.rb', line 1196

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


1201
1202
1203
# File 'generated/google/apis/games_v1/classes.rb', line 1201

def name
  @name
end

#urlString

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

Returns:

  • (String)


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

def url
  @url
end

#widthFixnum

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

Returns:

  • (Fixnum)


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

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1218
1219
1220
1221
1222
1223
1224
# File 'generated/google/apis/games_v1/classes.rb', line 1218

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