lib/nicoapi/base.rb in nicoapi-0.0.4.1 vs lib/nicoapi/base.rb in nicoapi-0.0.6
- old
+ new
@@ -1,6 +1,6 @@
-require 'NicoAPI/http_client'
+require 'nicoapi/http_client'
module NicoAPI
module Base
def scheme
@@ -23,11 +23,12 @@
_uri = scheme + "://" + [ ([host, path].join('/')), params].join('?')
URI.escape _uri
end
def get
- http_client = NicoAPI::HttpClient.instance
+ http_client = NicoAPI::HttpClient.new
http_client.set_params uri.to_s
http_client.get
end
end
end
+