Sha256: fbc525495025f9c1241e9db1cf771bf7ac3a7d32edceb7cc266bb4434a23f1d6
Contents?: true
Size: 412 Bytes
Versions: 5
Compression:
Stored size: 412 Bytes
Contents
module LinkedIn class Update < LinkedIn::Base %w[update_key update_type is_commentable?].each do |f| define_method(f.to_sym) do @doc.xpath("./update/#{f.gsub(/_/,'-')}").text end end def timestamp @doc.xpath('./update/timestamp').text.to_i end def profile Profile.new(Nokogiri::XML(@doc.xpath('./update/update-content/person').to_xml)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems