Represents global configuration for Twitter::Client. Can override the following configuration options:
- protocol - :http, :https or :ssl supported. :ssl is an alias for :https. Defaults to :ssl
- host - hostname to connect to for the Twitter service. Defaults to ‘twitter.com‘.
- port - port to connect to for the Twitter service. Defaults to 443.
- proxy_host - proxy host to use. Defaults to nil.
- proxy_port - proxy host to use. Defaults to nil.
- proxy_user - proxy username to use. Defaults to nil.
- proxy_pass - proxy password to use. Defaults to nil.
- user_agent - user agent string to use for each request of the HTTP header.
- application_name - name of your client application. Defaults to ‘Twitter4R‘
- application_version - version of your client application. Defaults to current Twitter::Version.to_version.
- application_url - URL of your client application. Defaults to twitter4r.rubyforge.org.
Methods
Included Modules
- ClassUtilMixin
Public Instance methods
Override of Object#eql? to ensure RSpec specifications run correctly. Also done to follow Ruby best practices.
[ show source ]
# File lib/twitter/config.rb, line 38
38: def eql?(other)
39: return true if self == other
40: @@ATTRIBUTES.each do |att|
41: return false unless self.send(att).eql?(other.send(att))
42: end
43: true
44: end