Class: Yt::Models::LiveStreamingDetail
- Defined in:
- lib/yt/models/live_streaming_detail.rb
Overview
Encapsulates information about a live video broadcast. The object will only be present in a video resource if the video is an upcoming, live, or completed live broadcast.
Instance Method Summary collapse
- #actual_end_time ⇒ Time?
- #actual_start_time ⇒ Time?
- #concurrent_viewers ⇒ Integer?
-
#initialize(options = {}) ⇒ LiveStreamingDetail
constructor
A new instance of LiveStreamingDetail.
- #scheduled_end_time ⇒ Time?
-
#scheduled_start_time ⇒ Time
The time that the broadcast is scheduled to begin.
Methods included from Associations::HasReports
Methods included from Associations::HasViewerPercentages
Methods included from Associations::HasOne
Methods included from Associations::HasMany
Methods included from Associations::HasAuthentication
Constructor Details
#initialize(options = {}) ⇒ LiveStreamingDetail
Returns a new instance of LiveStreamingDetail.
11 12 13 |
# File 'lib/yt/models/live_streaming_detail.rb', line 11 def initialize( = {}) @data = [:data] || {} end |
Instance Method Details
#actual_end_time ⇒ Time?
23 |
# File 'lib/yt/models/live_streaming_detail.rb', line 23 has_attribute :actual_end_time, type: Time |
#actual_start_time ⇒ Time?
18 |
# File 'lib/yt/models/live_streaming_detail.rb', line 18 has_attribute :actual_start_time, type: Time |
#concurrent_viewers ⇒ Integer?
38 |
# File 'lib/yt/models/live_streaming_detail.rb', line 38 has_attribute :concurrent_viewers, type: Integer |
#scheduled_end_time ⇒ Time?
31 |
# File 'lib/yt/models/live_streaming_detail.rb', line 31 has_attribute :scheduled_end_time, type: Time |
#scheduled_start_time ⇒ Time
Returns the time that the broadcast is scheduled to begin.
26 |
# File 'lib/yt/models/live_streaming_detail.rb', line 26 has_attribute :scheduled_start_time, type: Time |