Class: Brainzz::VideoDetailsCommand
- Inherits:
-
DataCommand
- Object
- BaseCommand
- DataCommand
- Brainzz::VideoDetailsCommand
- Defined in:
- lib/brainzz/commands/video_details_command.rb
Class Method Summary collapse
Methods inherited from DataCommand
Class Method Details
.execute(video_ids) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/brainzz/commands/video_details_command.rb', line 4 def execute(video_ids) video_details_params = VideoDetailsParams.new(video_ids) if video_details_params.valid? response = get(video_details_params) VideoDetailsResponse.new response else VideoDetailsResponse.new end end |