def session
      @session ||= begin
        http = Net::HTTP.new @host, @port
        http.use_ssl = self.use_ssl
        http.verify_mode = self.verify_mode
        http.read_timeout = self.read_timeout
        http.ssl_version = self.ssl_version if self.use_ssl
        http.start
      end
    end
def session
      @session ||= begin
        http = Net::HTTP.new @host, @port
        http.use_ssl = self.use_ssl
        http.verify_mode = self.verify_mode
        http.read_timeout = self.read_timeout
        http.ssl_version = self.ssl_version if self.use_ssl
        http.start
      end
    end
Net::HTTP