Class: Google::Apis::YoutubePartnerV1::Segment2

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) ⇒ Segment2

Returns a new instance of Segment2.



3752
3753
3754
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3752

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

Instance Attribute Details

#finishString

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

Returns:

  • (String)


3739
3740
3741
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3739

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)


3745
3746
3747
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3745

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)


3750
3751
3752
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3750

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3757
3758
3759
3760
3761
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3757

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