Class: YTAnalytics::Model::WatchTimeMetrics
- Inherits:
-
Object
- Object
- YTAnalytics::Model::WatchTimeMetrics
- Includes:
- Logging
- Defined in:
- lib/yt_analytics/model/watch_time_metrics.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#averageViewDuration ⇒ Object
Returns the value of attribute averageViewDuration.
-
#averageViewPercentage ⇒ Object
Returns the value of attribute averageViewPercentage.
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#estimatedMinutesWatched ⇒ Object
Returns the value of attribute estimatedMinutesWatched.
Instance Method Summary collapse
-
#initialize(params) ⇒ WatchTimeMetrics
constructor
A new instance of WatchTimeMetrics.
Methods included from Logging
Constructor Details
#initialize(params) ⇒ WatchTimeMetrics
Returns a new instance of WatchTimeMetrics.
8 9 10 11 12 13 |
# File 'lib/yt_analytics/model/watch_time_metrics.rb', line 8 def initialize params @end_date = params[:endDate] if params[:endDate] @estimatedMinutesWatched = params[:estimatedMinutesWatched] if params[:estimatedMinutesWatched] @averageViewDuration = params[:averageViewDuration] if params[:averageViewDuration] @averageViewPercentage = params[:averageViewPercentage] if params[:averageViewPercentage] end |
Instance Attribute Details
#averageViewDuration ⇒ Object
Returns the value of attribute averageViewDuration.
6 7 8 |
# File 'lib/yt_analytics/model/watch_time_metrics.rb', line 6 def averageViewDuration @averageViewDuration end |
#averageViewPercentage ⇒ Object
Returns the value of attribute averageViewPercentage.
6 7 8 |
# File 'lib/yt_analytics/model/watch_time_metrics.rb', line 6 def averageViewPercentage @averageViewPercentage end |
#end_date ⇒ Object
Returns the value of attribute end_date.
6 7 8 |
# File 'lib/yt_analytics/model/watch_time_metrics.rb', line 6 def end_date @end_date end |
#estimatedMinutesWatched ⇒ Object
Returns the value of attribute estimatedMinutesWatched.
6 7 8 |
# File 'lib/yt_analytics/model/watch_time_metrics.rb', line 6 def estimatedMinutesWatched @estimatedMinutesWatched end |