Class: LinkedIn::Update

Inherits:
Base
  • Object
show all
Defined in:
lib/linked_in/update.rb

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

#likesObject



18
19
20
# File 'lib/linked_in/update.rb', line 18

def likes
  Likes.new(Nokogiri::XML(@doc.xpath('./update/likes').to_xml)).likes
end

#profileObject



14
15
16
# File 'lib/linked_in/update.rb', line 14

def profile
  Profile.new(Nokogiri::XML(@doc.xpath('./update/update-content/person').to_xml))
end

#timestampObject



10
11
12
# File 'lib/linked_in/update.rb', line 10

def timestamp
  @doc.xpath('./update/timestamp').text.to_i
end