class OmniAuth::Strategies::Reliefwatch
Constants
- DEFAULT_SCOPE
Public Instance Methods
raw_info()
click to toggle source
# File lib/omniauth/strategies/reliefwatch.rb, line 27 def raw_info @raw_info ||= access_token.get('/api/v1/me').parsed || {} end
request_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/reliefwatch.rb, line 31 def request_phase options[:authorize_params] = { :scope => (options['scope'] || DEFAULT_SCOPE) } super end
Private Instance Methods
prune!(hash)
click to toggle source
# File lib/omniauth/strategies/reliefwatch.rb, line 41 def prune!(hash) hash.delete_if do |_, value| prune!(value) if value.is_a?(Hash) value.nil? || (value.respond_to?(:empty?) && value.empty?) end end