Class: Google::Apis::DisplayvideoV2::ImageAsset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/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.



6386
6387
6388
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6386

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)


6374
6375
6376
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6374

def file_size
  @file_size
end

#full_sizeGoogle::Apis::DisplayvideoV2::Dimensions

Dimensions. Corresponds to the JSON property fullSize



6379
6380
6381
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6379

def full_size
  @full_size
end

#mime_typeString

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

Returns:

  • (String)


6384
6385
6386
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6384

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6391
6392
6393
6394
6395
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6391

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