Class: Google::Apis::DisplayvideoV3::ImageAsset

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageAsset

Returns a new instance of ImageAsset.



6989
6990
6991
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6989

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

Instance Attribute Details

#file_sizeFixnum

File size of the image asset in bytes. Corresponds to the JSON property fileSize

Returns:

  • (Fixnum)


6977
6978
6979
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6977

def file_size
  @file_size
end

#full_sizeGoogle::Apis::DisplayvideoV3::Dimensions

Dimensions. Corresponds to the JSON property fullSize



6982
6983
6984
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6982

def full_size
  @full_size
end

#mime_typeString

MIME type of the image asset. Corresponds to the JSON property mimeType

Returns:

  • (String)


6987
6988
6989
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6987

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6994
6995
6996
6997
6998
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 6994

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