class OmniAuth::Strategies::SeaconLogistics
Public Instance Methods
raw_info()
click to toggle source
# File lib/omniauth/strategies/seaconlogistics.rb, line 37 def raw_info access_token.options[:mode] = :query access_token.options[:param_name] = :access_token @raw_info ||= access_token.get('oauth2.0/profile').parsed end
Private Instance Methods
attributes()
click to toggle source
# File lib/omniauth/strategies/seaconlogistics.rb, line 49 def attributes raw_info['attributes'].reduce Hash.new, :merge end
full_name()
click to toggle source
# File lib/omniauth/strategies/seaconlogistics.rb, line 45 def full_name [attributes['first_name'], attributes['last_name']].join(' ') end