Class: OmniAuth::Strategies::DrChrono

Inherits:
OAuth2
  • Object
show all
Includes:
OmniAuth::Strategy
Defined in:
lib/omniauth/strategies/drchrono.rb

Instance Method Summary collapse

Instance Method Details

#doctorObject



29
30
31
# File 'lib/omniauth/strategies/drchrono.rb', line 29

def doctor
  @doctor ||= access_token.get("doctors/#{raw_info['doctor']}").parsed
end

#officesObject



33
34
35
# File 'lib/omniauth/strategies/drchrono.rb', line 33

def offices
  @offices ||= access_token.get('offices').parsed['results']
end

#raw_infoObject



25
26
27
# File 'lib/omniauth/strategies/drchrono.rb', line 25

def raw_info
  @raw_info ||= access_token.get('users/current').parsed
end