Class: OmniAuth::Strategies::TaskRabbit
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::TaskRabbit
- Defined in:
- lib/omniauth/strategies/taskrabbit.rb
Instance Method Summary collapse
Instance Method Details
#access_token_options ⇒ Object
49 50 51 |
# File 'lib/omniauth/strategies/taskrabbit.rb', line 49 def ..inject({}) { |h,(k,v)| h[k.to_sym] = v; h } end |
#build_access_token ⇒ Object
43 44 45 46 47 |
# File 'lib/omniauth/strategies/taskrabbit.rb', line 43 def build_access_token super.tap do |token| token..merge!() end end |
#raw_info ⇒ Object
39 40 41 |
# File 'lib/omniauth/strategies/taskrabbit.rb', line 39 def raw_info @raw_info ||= access_token.get('/api/v1/account').parsed end |