Class: Taleo::Employee
- Defined in:
- lib/taleo/packet.rb,
lib/taleo/activity.rb,
lib/taleo/employee.rb,
lib/taleo/candidate.rb
Overview
Stub Employee class
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #first_name ⇒ Object
-
#has_attachments? ⇒ Boolean
Override since employee relationship URLs will not include an attachments URL.
- #id ⇒ Object
- #last_name ⇒ Object
- #location_id ⇒ Object
-
#relationship_urls ⇒ Object
Annoying hack since the employee resource relationship URLs hash doesn’t include an attachments link, even if there are attachments.
- #ssn ⇒ Object
Methods inherited from Resource
has_many, has_one, #initialize, #related_resource, #related_resources
Constructor Details
This class inherits a constructor from Taleo::Resource
Instance Method Details
#first_name ⇒ Object
17 18 19 |
# File 'lib/taleo/employee.rb', line 17 def first_name data.fetch('firstName') end |
#has_attachments? ⇒ Boolean
Override since employee relationship URLs will not include an attachments URL
40 41 42 |
# File 'lib/taleo/employee.rb', line 40 def true end |
#id ⇒ Object
13 14 15 |
# File 'lib/taleo/employee.rb', line 13 def id data.fetch('employeeId') end |
#last_name ⇒ Object
21 22 23 |
# File 'lib/taleo/employee.rb', line 21 def last_name data.fetch('lastName') end |
#location_id ⇒ Object
25 26 27 |
# File 'lib/taleo/employee.rb', line 25 def location_id data.fetch('location') end |
#relationship_urls ⇒ Object
Annoying hack since the employee resource relationship URLs hash doesn’t include an attachments link, even if there are attachments.
46 47 48 49 50 51 |
# File 'lib/taleo/employee.rb', line 46 def relationship_urls urls = super urls.merge({ 'attachment' => urls.fetch('historylog').gsub(/historylog$/, 'attachment') }) end |
#ssn ⇒ Object
29 30 31 |
# File 'lib/taleo/employee.rb', line 29 def ssn data.fetch('ssn') end |