Class: Google::Apis::YoutubePartnerV1::Segment2
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::Segment2
- 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
-
#finish ⇒ String
The finish time of the segment, measured in milliseconds from the beginning.
-
#kind ⇒ String
The type of the API resource.
-
#start ⇒ String
The start time of the segment, measured in milliseconds from the beginning.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Segment2
constructor
A new instance of Segment2.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#finish ⇒ String
The finish time of the segment, measured in milliseconds from the beginning.
Corresponds to the JSON property finish
3739 3740 3741 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3739 def finish @finish end |
#kind ⇒ String
The type of the API resource. For segment resources, the value is
youtubePartner#segment.
Corresponds to the JSON property kind
3745 3746 3747 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3745 def kind @kind end |
#start ⇒ String
The start time of the segment, measured in milliseconds from the beginning.
Corresponds to the JSON property start
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 |