# File lib/rubytter.rb, line 33 def setup(options) @host = options[:host] || 'api.twitter.com' @search_host = options[:search_host] || 'search.twitter.com' @header = {'User-Agent' => "Rubytter/#{VERSION} (http://github.com/jugyo/rubytter)"} @header.merge!(options[:header]) if options[:header] @app_name = options[:app_name] @connection = Connection.new(options) @connection_for_search = Connection.new(options.merge({:enable_ssl => false})) @path_prefix = options[:path_prefix] || '/1' end