Class: Brainzz::DataCommand

Inherits:
BaseCommand show all
Defined in:
lib/brainzz/commands/data_command.rb

Direct Known Subclasses

PlaylistItemsCommand, VideoDetailsCommand

Class Method Summary collapse

Class Method Details

.api_keyObject



14
15
16
# File 'lib/brainzz/commands/data_command.rb', line 14

def api_key
  ENV['BRAINZZ_GOOGLE_API_KEY']
end

.base_urlObject



10
11
12
# File 'lib/brainzz/commands/data_command.rb', line 10

def base_url
  'https://www.googleapis.com/youtube/v3'
end

.params(parameters = nil) ⇒ Object



4
5
6
7
8
# File 'lib/brainzz/commands/data_command.rb', line 4

def params(parameters = nil)
  super.merge({
    :key => api_key,
  })
end