Class: Google::Apis::YoutubePartnerV1::Segment

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Segment

Returns a new instance of Segment



3470
3471
3472
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3470

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

Instance Attribute Details

#durationFixnum

The duration of the segment in milliseconds. Corresponds to the JSON property duration

Returns:

  • (Fixnum)


3452
3453
3454
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3452

def duration
  @duration
end

#finishString

The finish time of the segment, measured in milliseconds from the beginning. Corresponds to the JSON property finish

Returns:

  • (String)


3457
3458
3459
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3457

def finish
  @finish
end

#kindString

The type of the API resource. For segment resources, the value is youtubePartner#segment. Corresponds to the JSON property kind

Returns:

  • (String)


3463
3464
3465
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3463

def kind
  @kind
end

#startString

The start time of the segment, measured in milliseconds from the beginning. Corresponds to the JSON property start

Returns:

  • (String)


3468
3469
3470
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3468

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3475
3476
3477
3478
3479
3480
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3475

def update!(**args)
  @duration = args[:duration] if args.key?(:duration)
  @finish = args[:finish] if args.key?(:finish)
  @kind = args[:kind] if args.key?(:kind)
  @start = args[:start] if args.key?(:start)
end