Class: LinkedIn::Location

Inherits:
Base
  • Object
show all
Defined in:
lib/linked_in/location.rb

Instance Attribute Summary

Attributes inherited from Base

#doc

Instance Method Summary collapse

Methods inherited from Base

from_xml, #initialize

Constructor Details

This class inherits a constructor from LinkedIn::Base

Instance Method Details

#countryObject



8
9
10
# File 'lib/linked_in/location.rb', line 8

def country
  @doc.xpath("/person/location/country/code").text
end

#nameObject



4
5
6
# File 'lib/linked_in/location.rb', line 4

def name
  @doc.xpath("/person/location/name").text
end