Other adapters are :typhoeus, :patron, :em_synchrony, :excon, :test
By default, don't traverse the page links
By default, don't set a user basic authentication
By default, don't set an application key
By default, don't set an application secret
By default uses the Faraday connection options if none is set
The api endpoint used to connect to GitHub if none is set
By default, don't set a user login name
By default the Accept header will make a request for JSON
By default, don't set a user oauth access token
By default, don't set organization name
By default, don't set a user password
By default, don't set repository name
The web endpoint used to connect to GitHub if none is set
The default SSL configuration
By default, don't set user name
The value sent in the http header for 'User-Agent' if none is set
Convenience method to allow for global setting of configuration options
# File lib/github_api/configuration.rb, line 79 def configure yield self end
# File lib/github_api/configuration.rb, line 93 def options options = {} VALID_OPTIONS_KEYS.each { |k| options[k] = send(k) } options end
Reset configuration options to their defaults
# File lib/github_api/configuration.rb, line 101 def reset! self.adapter = DEFAULT_ADAPTER self.client_id = DEFAULT_CLIENT_ID self.client_secret = DEFAULT_CLIENT_SECRET self.oauth_token = DEFAULT_OAUTH_TOKEN self.endpoint = DEFAULT_ENDPOINT self.site = DEFAULT_SITE self.ssl = DEFAULT_SSL self.user_agent = DEFAULT_USER_AGENT self.connection_options = DEFAULT_CONNECTION_OPTIONS self.mime_type = DEFAULT_MIME_TYPE self.user = DEFAULT_USER self.repo = DEFAULT_REPO self.org = DEFAULT_ORG self.login = DEFAULT_LOGIN self.password = DEFAULT_PASSWORD self.basic_auth = DEFAULT_BASIC_AUTH self.auto_pagination = DEFAULT_AUTO_PAGINATION self end
Generated with the Darkfish Rdoc Generator 2.