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

An image asset object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageAsset

Returns a new instance of ImageAsset.



1144
1145
1146
# File 'generated/google/apis/games_v1/classes.rb', line 1144

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

Instance Attribute Details

#heightFixnum

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

Returns:

  • (Fixnum)


1121
1122
1123
# File 'generated/google/apis/games_v1/classes.rb', line 1121

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)


1127
1128
1129
# File 'generated/google/apis/games_v1/classes.rb', line 1127

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


1132
1133
1134
# File 'generated/google/apis/games_v1/classes.rb', line 1132

def name
  @name
end

#urlString

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

Returns:

  • (String)


1137
1138
1139
# File 'generated/google/apis/games_v1/classes.rb', line 1137

def url
  @url
end

#widthFixnum

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

Returns:

  • (Fixnum)


1142
1143
1144
# File 'generated/google/apis/games_v1/classes.rb', line 1142

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1149
1150
1151
1152
1153
1154
1155
# File 'generated/google/apis/games_v1/classes.rb', line 1149

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