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

connection_options() click to toggle source

The connection options hash

@return [Hash]

# File lib/desk_api/default.rb, line 115
def connection_options
  CONNECTION_OPTIONS
end
consumer_key() click to toggle source

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
consumer_secret() click to toggle source

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
endpoint() click to toggle source

The endpoint if environmental variable is set

@return [String]

# File lib/desk_api/default.rb, line 108
def endpoint
  ENV['DESK_ENDPOINT']
end
options() click to toggle source

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
password() click to toggle source

The password if environmental variable is set

@return [String]

# File lib/desk_api/default.rb, line 66
def password
  ENV['DESK_PASSWORD']
end
subdomain() click to toggle source

The subdomain if environmental variable is set

@return [String]

# File lib/desk_api/default.rb, line 101
def subdomain
  ENV['DESK_SUBDOMAIN']
end
token() click to toggle source

The access token if environmental variable is set

@return [String]

# File lib/desk_api/default.rb, line 87
def token
  ENV['DESK_TOKEN']
end
token_secret() click to toggle source

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
username() click to toggle source

The username if environmental variable is set

@return [String]

# File lib/desk_api/default.rb, line 59
def username
  ENV['DESK_USERNAME']
end