Class: LinkedIn::Error
- Inherits:
-
Base
- Object
- Base
- LinkedIn::Error
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
#code ⇒ Object
12
13
14
|
# File 'lib/linked_in/error.rb', line 12
def code
@doc.xpath('//error-code').text.to_i
end
|
#message ⇒ Object
16
17
18
|
# File 'lib/linked_in/error.rb', line 16
def message
@doc.xpath('//message').text
end
|
#status ⇒ Object
4
5
6
|
# File 'lib/linked_in/error.rb', line 4
def status
@doc.xpath('//status').text.to_i
end
|
#timestamp ⇒ Object
8
9
10
|
# File 'lib/linked_in/error.rb', line 8
def timestamp
@doc.xpath('//timestamp').text.to_i
end
|