def http_client=(client)
      unless client.kind_of?(Net::HTTP) or client.nil?
        raise ArgumentError, "`client` expected to be a kind of `Net::HTTP`, `#{client.class}` given"
      end
      @http_client = client
    end
def http_client=(client)
      unless client.kind_of?(Net::HTTP) or client.nil?
        raise ArgumentError, "`client` expected to be a kind of `Net::HTTP`, `#{client.class}` given"
      end
      @http_client = client
    end
Sets the internal <tt>@http_client</tt> to +client+.

   # nil client
   obj.http_client = nil

   # http client
   obj.http_client = Net::HTTP.new()

   # invalid client
   obj.http_client = 'foo' # => ArgumentError