class OmniAuth::Strategies::Untappd
Public Instance Methods
client()
click to toggle source
# File lib/omniauth/strategies/untappd.rb, line 42 def client ::OAuth2::UntappdClient.new(options.client_id, options.client_secret, deep_symbolize(options.client_options)) end
raw_info()
click to toggle source
# File lib/omniauth/strategies/untappd.rb, line 56 def raw_info access_token.options[:mode] = :query access_token.options[:param_name] = :access_token @raw_info ||= access_token.get('https://api.untappd.com/v4/user/info').parsed['response']['user'] end
token_params()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/untappd.rb, line 51 def token_params options.token_params[:redirect_url] = callback_url super end
Private Instance Methods
user_name()
click to toggle source
# File lib/omniauth/strategies/untappd.rb, line 64 def user_name "#{raw_info['first_name']} #{raw_info['last_name']}" end