class OmniAuth::Strategies::Dobt
Public Instance Methods
raw_info()
click to toggle source
# File lib/omniauth/strategies/dobt.rb, line 37 def raw_info @raw_info ||= access_token.get('/api/account.json?v=1').parsed end
Private Instance Methods
pick(obj, *keys)
click to toggle source
# File lib/omniauth/strategies/dobt.rb, line 43 def pick(obj, *keys) stringified_keys = keys.map(&:to_s) {}.tap do |h| obj.each do |key, value| h[key.to_sym] = value if stringified_keys.include?(key.to_s) end end end