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