Class: OmniAuth::Strategies::Ohloh

Inherits:
OAuth
  • Object
show all
Defined in:
lib/omniauth/strategies/ohloh.rb

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



31
32
33
# File 'lib/omniauth/strategies/ohloh.rb', line 31

def raw_info
  @raw_info ||= Hash[REXML::Document.new(access_token.get('/accounts/me.xml').body).root.get_elements('/response/result/account').first.elements.collect{|n| [n.name,n.text]}]
end