Class: OmniAuth::Strategies::DrChrono
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::DrChrono
- Includes:
- OmniAuth::Strategy
- Defined in:
- lib/omniauth/strategies/drchrono.rb
Instance Method Summary collapse
Instance Method Details
#doctor ⇒ Object
29 30 31 |
# File 'lib/omniauth/strategies/drchrono.rb', line 29 def doctor @doctor ||= access_token.get("doctors/#{raw_info['doctor']}").parsed end |
#offices ⇒ Object
33 34 35 |
# File 'lib/omniauth/strategies/drchrono.rb', line 33 def offices @offices ||= access_token.get('offices').parsed['results'] end |
#raw_info ⇒ Object
25 26 27 |
# File 'lib/omniauth/strategies/drchrono.rb', line 25 def raw_info @raw_info ||= access_token.get('users/current').parsed end |