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