Class: LinkedIn::Position
- Inherits:
-
Base
- Object
- Base
- LinkedIn::Position
show all
- Defined in:
- lib/linked_in/position.rb
Defined Under Namespace
Classes: Resource
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
#positions ⇒ Object
4
5
6
7
8
9
|
# File 'lib/linked_in/position.rb', line 4
def positions
@positions ||= @doc.children.inject([]) do |list, position|
list << Resource.new(position) unless position.blank?
list
end
end
|