class Taleo::Employee
Stub for Employee
resource class
Stub Employee
class
Stub for Employee
resource class
Public Instance Methods
first_name()
click to toggle source
# File lib/taleo/employee.rb, line 17 def first_name data.fetch('firstName') end
has_attachments?()
click to toggle source
Override since employee relationship URLs will not include an attachments URL
# File lib/taleo/employee.rb, line 40 def has_attachments? true end
id()
click to toggle source
# File lib/taleo/employee.rb, line 13 def id data.fetch('employeeId') end
last_name()
click to toggle source
# File lib/taleo/employee.rb, line 21 def last_name data.fetch('lastName') end
location_id()
click to toggle source
# File lib/taleo/employee.rb, line 25 def location_id data.fetch('location') end
relationship_urls()
click to toggle source
Annoying hack since the employee resource relationship URLs hash doesn't include an attachments link, even if there are attachments.
Calls superclass method
# File lib/taleo/employee.rb, line 46 def relationship_urls urls = super urls.merge({ 'attachment' => urls.fetch('historylog').gsub(/historylog$/, 'attachment') }) end
ssn()
click to toggle source
# File lib/taleo/employee.rb, line 29 def ssn data.fetch('ssn') end