Skip to content

Commit

Permalink
These are not ENV things
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Mar 8, 2015
1 parent e24d1b5 commit 3652287
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/purdie/services/youtube.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class YouTube

def configure
@matcher = 'youtube.com'
@api_service_name = 'youtube'
@api_version = 'v3'

super
end
Expand All @@ -24,8 +26,8 @@ def client

def yt_service
@yt_service ||= client.discovered_api(
ENV['YOUTUBE_API_SERVICE_NAME'],
ENV['YOUTUBE_API_VERSION']
@api_service_name,
@api_version
)
end

Expand Down

0 comments on commit 3652287

Please sign in to comment.