Class: OmniAuth::Strategies::GetGlue

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

Instance Method Summary collapse

Instance Method Details

#display_nameObject



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_infoObject



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

#usernameObject



27
28
29
# File 'lib/omniauth/strategies/getglue.rb', line 27

def username
  raw_info.xpath("/adaptiveblue/response/profile/username").inner_text
end