Sha256: 7b08ea16455f1294e32fda1c4f04b310e232ee537bb2ee9fd715b15aa2c81b27
Contents?: true
Size: 416 Bytes
Versions: 7
Compression:
Stored size: 416 Bytes
Contents
module LinkedIn class Likes < LinkedIn::Base def likes @likes ||= @doc.xpath('//likes').children.inject([]) do |list, like| list << Resource.new(like) unless like.blank? list end end class Resource def initialize(like) @like = like end def profile Profile.new(Nokogiri::XML(@like.xpath('./person').to_xml)) end end end end
Version data entries
7 entries across 7 versions & 3 rubygems