Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageAsset
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageAsset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb
Overview
An Image asset.
Instance Attribute Summary collapse
-
#file_size ⇒ Fixnum
File size of the image asset in bytes.
-
#full_size ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageDimension
Metadata for an image at a certain size, either original or resized.
-
#mime_type ⇒ String
MIME type of the image asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonImageAsset
constructor
A new instance of GoogleAdsSearchads360V0CommonImageAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonImageAsset
Returns a new instance of GoogleAdsSearchads360V0CommonImageAsset.
354 355 356 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 354 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_size ⇒ Fixnum
File size of the image asset in bytes.
Corresponds to the JSON property fileSize
342 343 344 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 342 def file_size @file_size end |
#full_size ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageDimension
Metadata for an image at a certain size, either original or resized.
Corresponds to the JSON property fullSize
347 348 349 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 347 def full_size @full_size end |
#mime_type ⇒ String
MIME type of the image asset.
Corresponds to the JSON property mimeType
352 353 354 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 352 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
359 360 361 362 363 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 359 def update!(**args) @file_size = args[:file_size] if args.key?(:file_size) @full_size = args[:full_size] if args.key?(:full_size) @mime_type = args[:mime_type] if args.key?(:mime_type) end |