Class: Google::Apis::RealtimebiddingV1::MediaFile
- Inherits:
-
Object
- Object
- Google::Apis::RealtimebiddingV1::MediaFile
- 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
-
#bitrate ⇒ Fixnum
Bitrate of the video file, in Kbps.
-
#mime_type ⇒ String
The MIME type of this media file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MediaFile
constructor
A new instance of MediaFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MediaFile
Returns a new instance of MediaFile.
1447 1448 1449 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1447 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bitrate ⇒ Fixnum
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
1439 1440 1441 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1439 def bitrate @bitrate end |
#mime_type ⇒ String
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
1445 1446 1447 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1445 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1452 1453 1454 1455 |
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 1452 def update!(**args) @bitrate = args[:bitrate] if args.key?(:bitrate) @mime_type = args[:mime_type] if args.key?(:mime_type) end |