class OmniAuth::Strategies::Dotloop

Authentication strategy for connecting with the Dotloop API.

Public Instance Methods

raw_info() click to toggle source
# File lib/omniauth/strategies/dotloop.rb, line 40
def raw_info
  @raw_info ||= access_token.get('account').parsed['data']
end

Private Instance Methods

name_from_raw_info() click to toggle source
# File lib/omniauth/strategies/dotloop.rb, line 46
def name_from_raw_info
  return unless raw_info['firstName'] || raw_info['lastName']

  "#{raw_info['firstName']} #{raw_info['lastName']}".strip
end