# File lib/rubytter/connection.rb, line 5 def initialize(options = {}) @proxy_host = options[:proxy_host] @proxy_port = options[:proxy_port] @proxy_user = options[:proxy_user_name] @proxy_password = options[:proxy_password] @proxy_uri = nil @enable_ssl = options[:enable_ssl] if @enable_ssl @protocol = "https" @port = 443 else @protocol = "http" @port = 80 end if @proxy_host @http_class = Net::HTTP::Proxy(@proxy_host, @proxy_port, @proxy_user, @proxy_password) @proxy_uri = "#{@protocol}://" + @proxy_host + ":" + @proxy_port.to_s + "/" else @http_class = Net::HTTP end end
Generated with the Darkfish Rdoc Generator 2.