Class: Google::Apis::YoutubePartnerV1::AdBreak
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::AdBreak
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb
Instance Attribute Summary collapse
-
#midroll_seconds ⇒ Fixnum
The time of the ad break specified as the number of seconds after the start of the video when the break occurs.
-
#position ⇒ String
The point at which the break occurs during the video playback.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdBreak
constructor
A new instance of AdBreak.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdBreak
Returns a new instance of AdBreak.
40 41 42 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 40 def initialize(**args) update!(**args) end |
Instance Attribute Details
#midroll_seconds ⇒ Fixnum
The time of the ad break specified as the number of seconds after the start of
the video when the break occurs.
Corresponds to the JSON property midrollSeconds
33 34 35 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 33 def midroll_seconds @midroll_seconds end |
#position ⇒ String
The point at which the break occurs during the video playback.
Corresponds to the JSON property position
38 39 40 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 38 def position @position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
45 46 47 48 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 45 def update!(**args) @midroll_seconds = args[:midroll_seconds] if args.key?(:midroll_seconds) @position = args[:position] if args.key?(:position) end |