Class: Google::Apis::YoutubeV3::LiveBroadcastStatistics
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::LiveBroadcastStatistics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb
Overview
Statistics about the live broadcast. These represent a snapshot of the values at the time of the request. Statistics are only returned for live broadcasts.
Instance Attribute Summary collapse
-
#total_chat_count ⇒ Fixnum
The total number of live chat messages currently on the broadcast.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LiveBroadcastStatistics
constructor
A new instance of LiveBroadcastStatistics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LiveBroadcastStatistics
Returns a new instance of LiveBroadcastStatistics.
3881 3882 3883 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3881 def initialize(**args) update!(**args) end |
Instance Attribute Details
#total_chat_count ⇒ Fixnum
The total number of live chat messages currently on the broadcast. The
property and its value will be present if the broadcast is public, has the
live chat feature enabled, and has at least one message. Note that this field
will not be filled after the broadcast ends. So this property would not
identify the number of chat messages for an archived video of a completed live
broadcast.
Corresponds to the JSON property totalChatCount
3879 3880 3881 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3879 def total_chat_count @total_chat_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3886 3887 3888 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3886 def update!(**args) @total_chat_count = args[:total_chat_count] if args.key?(:total_chat_count) end |