module DeskApi::Default
{DeskApi::Default} contains the default configuration for each {DeskApi::Client}.
@author Thomas Stachl <tstachl@salesforce.com> @copyright Copyright © 2013-2016 Salesforce.com @license BSD 3-Clause License
Constants
- CONNECTION_OPTIONS
Public Class Methods
The connection options hash
@return [Hash]
# File lib/desk_api/default.rb, line 115 def connection_options CONNECTION_OPTIONS end
The consumer key if environmental variable is set
@return [String]
# File lib/desk_api/default.rb, line 73 def consumer_key ENV['DESK_CONSUMER_KEY'] end
The consumer secret if environmental variable is set
@return [String]
# File lib/desk_api/default.rb, line 80 def consumer_secret ENV['DESK_CONSUMER_SECRET'] end
The endpoint if environmental variable is set
@return [String]
# File lib/desk_api/default.rb, line 108 def endpoint ENV['DESK_ENDPOINT'] end
A hash of all the options
@return [Hash]
# File lib/desk_api/default.rb, line 52 def options Hash[DeskApi::Configuration.keys.map { |key| [key, send(key)] }] end
The password if environmental variable is set
@return [String]
# File lib/desk_api/default.rb, line 66 def password ENV['DESK_PASSWORD'] end
The subdomain if environmental variable is set
@return [String]
# File lib/desk_api/default.rb, line 101 def subdomain ENV['DESK_SUBDOMAIN'] end
The access token if environmental variable is set
@return [String]
# File lib/desk_api/default.rb, line 87 def token ENV['DESK_TOKEN'] end
The access token secret if environmental variable is set
@return [String]
# File lib/desk_api/default.rb, line 94 def token_secret ENV['DESK_TOKEN_SECRET'] end
The username if environmental variable is set
@return [String]
# File lib/desk_api/default.rb, line 59 def username ENV['DESK_USERNAME'] end