class OmniAuth::Strategies::Contactually

Authentication strategy for connecting with the Contactually API.

Public Instance Methods

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

Private Instance Methods

name_from_raw_info() click to toggle source
# File lib/omniauth/strategies/contactually.rb, line 46
def name_from_raw_info
  if raw_info['first_name'] || raw_info['last_name']
    "#{raw_info['first_name']} #{raw_info['last_name']}".strip
  else
    raw_info['email']
  end
end