lib/syncano/connection.rb in syncano-4.0.0.alpha3 vs lib/syncano/connection.rb in syncano-4.0.0.alpha4
- old
+ new
@@ -9,11 +9,11 @@
attr_accessor :api_key
attr_accessor :user_key
class << self
def api_root
- ENV['API_ROOT']
+ "https://api.syncano.io"
end
end
def http_fetcher
HttpFetcher.new api_key, user_key
@@ -25,11 +25,11 @@
self.password = options[:password]
self.user_key = options[:user_key]
self.conn = Faraday.new(self.class.api_root) do |faraday|
faraday.path_prefix = API_VERSION
faraday.request :multipart
- faraday.request :url_encoded
- faraday.adapter Faraday.default_adapter
+ faraday.request :url_encoded
+ faraday.adapter Faraday.default_adapter
end
end
def authenticated?
!api_key.nil?