Class: Google::Apis::RealtimebiddingV1::MediaFile

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/realtimebidding_v1/classes.rb,
lib/google/apis/realtimebidding_v1/representations.rb,
lib/google/apis/realtimebidding_v1/representations.rb

Overview

Information about each media file in the VAST.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MediaFile

Returns a new instance of MediaFile.



1461
1462
1463
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1461

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

Instance Attribute Details

#bitrateFixnum

Bitrate of the video file, in Kbps. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property bitrate

Returns:

  • (Fixnum)


1453
1454
1455
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1453

def bitrate
  @bitrate
end

#mime_typeString

The MIME type of this media file. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property mimeType

Returns:

  • (String)


1459
1460
1461
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1459

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1466
1467
1468
1469
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1466

def update!(**args)
  @bitrate = args[:bitrate] if args.key?(:bitrate)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end