Class: LinkedIn::Base
- Inherits:
-
Object
- Object
- LinkedIn::Base
- Defined in:
- lib/linked_in/base.rb
Direct Known Subclasses
ApiStandardProfileRequest, Birthdate, Company, Connections, Country, CurrentShare, Education, Error, Group, Languages, Likes, Location, Network, Patents, People, PhoneNumber, Position, Profile, Publications, Recommendations, ShortProfile, Skill, Update, UrlResource
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(doc) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(doc) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/linked_in/base.rb', line 10 def initialize(doc) @doc = doc end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
4 5 6 |
# File 'lib/linked_in/base.rb', line 4 def doc @doc end |
Class Method Details
.from_xml(doc) ⇒ Object
6 7 8 |
# File 'lib/linked_in/base.rb', line 6 def self.from_xml(doc) new(Nokogiri::XML(doc)) end |