DRY. You can have
```
  request_class = case method
      when :post then Net::HTTP::Post
      when :put   then Net::HTTP::Put
      when :get then Net::HTTP::Get
      else
         raise ...
      end

   request_class.new url.request_uri
```