Class: Google::Apis::GamesV1::ImageAsset
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::ImageAsset
- 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
-
#height ⇒ Fixnum
The height of the asset.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#name ⇒ String
The name of the asset.
-
#url ⇒ String
The URL of the asset.
-
#width ⇒ Fixnum
The width of the asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageAsset
constructor
A new instance of ImageAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#height ⇒ Fixnum
The height of the asset.
Corresponds to the JSON property height
1190 1191 1192 |
# File 'generated/google/apis/games_v1/classes.rb', line 1190 def height @height end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#imageAsset.
Corresponds to the JSON property kind
1196 1197 1198 |
# File 'generated/google/apis/games_v1/classes.rb', line 1196 def kind @kind end |
#name ⇒ String
The name of the asset.
Corresponds to the JSON property name
1201 1202 1203 |
# File 'generated/google/apis/games_v1/classes.rb', line 1201 def name @name end |
#url ⇒ String
The URL of the asset.
Corresponds to the JSON property url
1206 1207 1208 |
# File 'generated/google/apis/games_v1/classes.rb', line 1206 def url @url end |
#width ⇒ Fixnum
The width of the asset.
Corresponds to the JSON property width
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 |