Class: OmniAuth::Strategies::GetGlue
- Inherits:
-
OAuth
- Object
- OAuth
- OmniAuth::Strategies::GetGlue
- Defined in:
- lib/omniauth/strategies/getglue.rb
Instance Method Summary collapse
Instance Method Details
#display_name ⇒ Object
31 32 33 |
# File 'lib/omniauth/strategies/getglue.rb', line 31 def display_name raw_info.xpath("/adaptiveblue/response/profile/displayName").inner_text end |
#raw_info ⇒ Object
35 36 37 |
# File 'lib/omniauth/strategies/getglue.rb', line 35 def raw_info @raw_info ||= Nokogiri::XML(access_token.get('http://api.getglue.com/v2/user/profile').body) end |
#username ⇒ Object
27 28 29 |
# File 'lib/omniauth/strategies/getglue.rb', line 27 def username raw_info.xpath("/adaptiveblue/response/profile/username").inner_text end |