lib/ezid/request.rb in ezid-client-0.8.0 vs lib/ezid/request.rb in ezid-client-0.9.0

- old
+ new

@@ -18,11 +18,11 @@ yield request if block_given? request.execute end # @param method [Symbol] the Net::HTTP constant for the request method - # @param uri [URI] the uri - def initialize(method, uri) # path) + # @param uri [URI] the uri + def initialize(method, uri) http_method = Net::HTTP.const_get(method) super(http_method.new(uri)) set_content_type(CONTENT_TYPE, charset: CHARSET) end