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.
-
#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) ⇒ Segment
constructor
A new instance of Segment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Segment
Returns a new instance of Segment.
3387 3388 3389 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3387 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ Fixnum
The duration of the segment in milliseconds.
Corresponds to the JSON property duration
3369 3370 3371 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3369 def duration @duration end |
#finish ⇒ String
The finish time of the segment, measured in milliseconds from the beginning.
Corresponds to the JSON property finish
3374 3375 3376 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3374 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
3380 3381 3382 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3380 def kind @kind end |
#start ⇒ String
The start time of the segment, measured in milliseconds from the beginning.
Corresponds to the JSON property start
3385 3386 3387 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3385 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3392 3393 3394 3395 3396 3397 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3392 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 |