Class: LinkedIn::Base

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ Base

Returns a new instance of Base.



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

def initialize(doc)
  @doc = doc
end

Class Method Details

.from_xml(doc) ⇒ Object



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

def self.from_xml(doc)
  new(Nokogiri::XML(doc))
end