lib/learn_web/client.rb in learn-web-1.5.0 vs lib/learn_web/client.rb in learn-web-1.5.1
- old
+ new
@@ -10,10 +10,10 @@
module LearnWeb
class Client
attr_reader :token, :conn, :silent_output
- LEARN_URL = 'https://learn.co'
+ LEARN_URL = ENV.fetch('LEARN_CO_URL', 'https://learn.co').freeze
API_ROOT = '/api/v1'
include LearnWeb::Client::Request
include LearnWeb::Client::Connection
include LearnWeb::Client::PullRequest