lib/nicoapi/http_client.rb in nicoapi-0.0.4.1 vs lib/nicoapi/http_client.rb in nicoapi-0.0.6
- old
+ new
@@ -1,13 +1,12 @@
require 'rest_client'
-require 'singleton'
module NicoAPI
class HttpClient
- include Singleton
-
- def set_params(uri) @uri = uri end
+ def set_params(uri)
+ @uri = uri
+ end
def get
RestClient.get @uri.to_s
end
end