Class: Brainzz::ViewCountCommand
- Inherits:
-
AnalyticsCommand
- Object
- BaseCommand
- AnalyticsCommand
- Brainzz::ViewCountCommand
- Defined in:
- lib/brainzz/commands/view_count_command.rb
Class Method Summary collapse
Class Method Details
.execute(channel_id, video_id, start_date, end_date, refresh_token) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/brainzz/commands/view_count_command.rb', line 4 def execute(channel_id, video_id, start_date, end_date, refresh_token) view_count_params = ViewCountParams.new({ :channel_id => channel_id, :video_id => video_id, :start_date => start_date, :end_date => end_date, :refresh_token => refresh_token }) if view_count_params.valid? ViewCountResponse.new get(view_count_params) else ViewCountResponse.new end end |