Class: Google::Apis::DisplayvideoV3::ImageAsset
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::ImageAsset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb
Overview
Meta data of an image asset.
Instance Attribute Summary collapse
-
#file_size ⇒ Fixnum
File size of the image asset in bytes.
-
#full_size ⇒ Google::Apis::DisplayvideoV3::Dimensions
Dimensions.
-
#mime_type ⇒ String
MIME type of the image 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.
7106 7107 7108 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7106 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
7094 7095 7096 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7094 def file_size @file_size end |
#full_size ⇒ Google::Apis::DisplayvideoV3::Dimensions
Dimensions.
Corresponds to the JSON property fullSize
7099 7100 7101 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7099 def full_size @full_size end |
#mime_type ⇒ String
MIME type of the image asset.
Corresponds to the JSON property mimeType
7104 7105 7106 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7104 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7111 7112 7113 7114 7115 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7111 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 |