Class: Cb::Responses::Resume
Instance Attribute Summary
Attributes inherited from ApiResponse
#models, #response
Instance Method Summary
collapse
Methods inherited from ApiResponse
#initialize
Instance Method Details
18
19
20
|
# File 'lib/cb/responses/resumes/resume.rb', line 18
def
response[root_node].map { |resume| Models::Resume.new(resume) }
end
|
22
23
24
|
# File 'lib/cb/responses/resumes/resume.rb', line 22
def hash_containing_metadata
response
end
|
#root_node ⇒ Object
30
31
32
|
# File 'lib/cb/responses/resumes/resume.rb', line 30
def root_node
'Results'
end
|
#status ⇒ Object
26
27
28
|
# File 'lib/cb/responses/resumes/resume.rb', line 26
def status
response['Status']
end
|
#validate_api_hash ⇒ Object
14
15
16
|
# File 'lib/cb/responses/resumes/resume.rb', line 14
def validate_api_hash
required_response_field(root_node, response)
end
|