Class: Google::Apis::GamesV1::ImageAsset
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::ImageAsset
- 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
-
#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.
Constructor Details
#initialize(**args) ⇒ ImageAsset
Returns a new instance of ImageAsset.
1160 1161 1162 |
# File 'lib/google/apis/games_v1/classes.rb', line 1160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
The height of the asset.
Corresponds to the JSON property height
1137 1138 1139 |
# File 'lib/google/apis/games_v1/classes.rb', line 1137 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
1143 1144 1145 |
# File 'lib/google/apis/games_v1/classes.rb', line 1143 def kind @kind end |
#name ⇒ String
The name of the asset.
Corresponds to the JSON property name
1148 1149 1150 |
# File 'lib/google/apis/games_v1/classes.rb', line 1148 def name @name end |
#url ⇒ String
The URL of the asset.
Corresponds to the JSON property url
1153 1154 1155 |
# File 'lib/google/apis/games_v1/classes.rb', line 1153 def url @url end |
#width ⇒ Fixnum
The width of the asset.
Corresponds to the JSON property width
1158 1159 1160 |
# File 'lib/google/apis/games_v1/classes.rb', line 1158 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1165 1166 1167 1168 1169 1170 1171 |
# File 'lib/google/apis/games_v1/classes.rb', line 1165 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 |