Class: LinkedIn::Error

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

Instance Method Summary collapse

Methods inherited from Base

from_xml, #initialize

Constructor Details

This class inherits a constructor from LinkedIn::Base

Instance Method Details

#codeObject



12
13
14
# File 'lib/linked_in/error.rb', line 12

def code
  @doc.xpath('//error-code').text.to_i
end

#messageObject



16
17
18
# File 'lib/linked_in/error.rb', line 16

def message
  @doc.xpath('//message').text
end

#statusObject



4
5
6
# File 'lib/linked_in/error.rb', line 4

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

#timestampObject



8
9
10
# File 'lib/linked_in/error.rb', line 8

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