Class: Google::Apis::YoutubePartnerV1::Segment
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::Segment
- 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
-
#duration ⇒ Fixnum
The duration of the segment in milliseconds.
-
#kind ⇒ String
The type of the API resource.
-
#start ⇒ Fixnum
The start time of the segment, measured in milliseconds from the beginning.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Segment
constructor
A new instance of Segment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Segment
Returns a new instance of Segment.
3720 3721 3722 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3720 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ Fixnum
The duration of the segment in milliseconds.
Corresponds to the JSON property duration
3707 3708 3709 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3707 def duration @duration end |
#kind ⇒ String
The type of the API resource. For segment resources, the value is
youtubePartner#segment.
Corresponds to the JSON property kind
3713 3714 3715 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3713 def kind @kind end |
#start ⇒ Fixnum
The start time of the segment, measured in milliseconds from the beginning.
Corresponds to the JSON property start
3718 3719 3720 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3718 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3725 3726 3727 3728 3729 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3725 def update!(**args) @duration = args[:duration] if args.key?(:duration) @kind = args[:kind] if args.key?(:kind) @start = args[:start] if args.key?(:start) end |