Class: LinkedIn::CompanySearch
- Defined in:
- lib/linked_in/company_search.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from LinkedIn::Base
Instance Method Details
#companies ⇒ Object
10 11 12 13 14 15 |
# File 'lib/linked_in/company_search.rb', line 10 def companies @companies ||= @doc.xpath('//company').inject([]) do |list, company| list << Company.new(company) unless company.nil? list end end |