Class: YTAnalytics::Model::WatchTimeMetrics

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/yt_analytics/model/watch_time_metrics.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

#logger

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

#averageViewDurationObject

Returns the value of attribute averageViewDuration.



6
7
8
# File 'lib/yt_analytics/model/watch_time_metrics.rb', line 6

def averageViewDuration
  @averageViewDuration
end

#averageViewPercentageObject

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_dateObject

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

#estimatedMinutesWatchedObject

Returns the value of attribute estimatedMinutesWatched.



6
7
8
# File 'lib/yt_analytics/model/watch_time_metrics.rb', line 6

def estimatedMinutesWatched
  @estimatedMinutesWatched
end