Module: DeskApi::Default
- Defined in:
- lib/desk_api/default.rb
Constant Summary collapse
- CONNECTION_OPTIONS =
{ headers: { accept: 'application/json', user_agent: "desk.com Ruby Gem v#{DeskApi::VERSION}" }, request: { open_timeout: 5, timeout: 10 } }
Class Method Summary collapse
- .connection_options ⇒ Object
- .consumer_key ⇒ String
- .consumer_secret ⇒ String
- .endpoint ⇒ String
- .options ⇒ Hash
- .password ⇒ String
- .subdomain ⇒ String
- .token ⇒ String
- .token_secret ⇒ String
- .username ⇒ String
Class Method Details
.connection_options ⇒ Object
59 60 61 |
# File 'lib/desk_api/default.rb', line 59 def CONNECTION_OPTIONS end |
.consumer_key ⇒ String
30 31 32 |
# File 'lib/desk_api/default.rb', line 30 def consumer_key ENV['DESK_CONSUMER_KEY'] end |
.consumer_secret ⇒ String
35 36 37 |
# File 'lib/desk_api/default.rb', line 35 def consumer_secret ENV['DESK_CONSUMER_SECRET'] end |
.endpoint ⇒ String
55 56 57 |
# File 'lib/desk_api/default.rb', line 55 def endpoint ENV['DESK_ENDPOINT'] end |
.options ⇒ Hash
15 16 17 |
# File 'lib/desk_api/default.rb', line 15 def Hash[DeskApi::Configuration.keys.map{|key| [key, send(key)]}] end |
.password ⇒ String
25 26 27 |
# File 'lib/desk_api/default.rb', line 25 def password ENV['DESK_PASSWORD'] end |
.subdomain ⇒ String
50 51 52 |
# File 'lib/desk_api/default.rb', line 50 def subdomain ENV['DESK_SUBDOMAIN'] end |
.token ⇒ String
40 41 42 |
# File 'lib/desk_api/default.rb', line 40 def token ENV['DESK_TOKEN'] end |
.token_secret ⇒ String
45 46 47 |
# File 'lib/desk_api/default.rb', line 45 def token_secret ENV['DESK_TOKEN_SECRET'] end |
.username ⇒ String
20 21 22 |
# File 'lib/desk_api/default.rb', line 20 def username ENV['DESK_USERNAME'] end |