Class: Google::Apis::YoutubePartnerV1::AdBreak

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

Instance Method Summary collapse

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_secondsFixnum

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

Returns:

  • (Fixnum)


33
34
35
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 33

def midroll_seconds
  @midroll_seconds
end

#positionString

The point at which the break occurs during the video playback. Corresponds to the JSON property position

Returns:

  • (String)


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