module WorkSnaps::Default
Constants
- CONNECTION_OPTIONS
- ENDPOINT
- IDENTITY_MAP
- MIDDLEWARE
Public Class Methods
api_tocken()
click to toggle source
@return [String]
# File lib/worksnaps/default.rb, line 48 def api_tocken ENV['WORKSNAPS_API_TOCKEN'] end
connection_options()
click to toggle source
# File lib/worksnaps/default.rb, line 76 def connection_options CONNECTION_OPTIONS end
consumer_key()
click to toggle source
@return [String]
# File lib/worksnaps/default.rb, line 53 def consumer_key ENV['WORKSNAPS_CONSUMER_KEY'] end
consumer_secret()
click to toggle source
@return [String]
# File lib/worksnaps/default.rb, line 58 def consumer_secret ENV['WORKSNAPS_CONSUMER_SECRET'] end
endpoint()
click to toggle source
# File lib/worksnaps/default.rb, line 72 def endpoint ENDPOINT end
identity_map()
click to toggle source
# File lib/worksnaps/default.rb, line 80 def identity_map IDENTITY_MAP end
middleware()
click to toggle source
@note Faraday's middleware stack implementation is comparable to that of Rack middleware. The order of middleware is important: the first middleware on the list wraps all others, while the last middleware is the innermost one. @see github.com/technoweenie/faraday#advanced-middleware-usage @see mislav.uniqpath.com/2011/07/faraday-advanced-http/ @return [Faraday::Builder]
# File lib/worksnaps/default.rb, line 88 def middleware MIDDLEWARE end
oauth_token()
click to toggle source
@return [String]
# File lib/worksnaps/default.rb, line 63 def oauth_token ENV['WORKSNAPS_OAUTH_TOKEN'] end
oauth_token_secret()
click to toggle source
@return [String]
# File lib/worksnaps/default.rb, line 68 def oauth_token_secret ENV['WORKSNAPS_OAUTH_TOKEN_SECRET'] end
options()
click to toggle source
# File lib/worksnaps/default.rb, line 43 def options Hash[Wsnaps.keys.map{|key| [key, send(key)]}] end