Class: Cb::Responses::Recommendations
Instance Attribute Summary
Attributes inherited from ApiResponse
#models, #response
Instance Method Summary
collapse
Methods inherited from ApiResponse
#initialize
Instance Method Details
24
25
26
|
# File 'lib/cb/responses/Recommendation/recommendations.rb', line 24
def
response[root_node]['results'].map { |cur_job| Models::RecommendedJob.new(cur_job) }
end
|
20
21
22
|
# File 'lib/cb/responses/Recommendation/recommendations.rb', line 20
def hash_containing_metadata
nil
end
|
#root_node ⇒ Object
28
29
30
|
# File 'lib/cb/responses/Recommendation/recommendations.rb', line 28
def root_node
'data'
end
|
#validate_api_hash ⇒ Object
14
15
16
17
18
|
# File 'lib/cb/responses/Recommendation/recommendations.rb', line 14
def validate_api_hash
check_nonstandard_error_node(response)
required_response_field(root_node, response)
required_response_field('results', response[root_node])
end
|