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
15
16
17
|
# File 'lib/cb/responses/Recommendation/recommendations.rb', line 15
def
response[root_node]['results'].map { |cur_job| Models::RecommendedJob.new(cur_job) }
end
|
11
12
13
|
# File 'lib/cb/responses/Recommendation/recommendations.rb', line 11
def hash_containing_metadata
nil
end
|
#root_node ⇒ Object
19
20
21
|
# File 'lib/cb/responses/Recommendation/recommendations.rb', line 19
def root_node
'data'
end
|
#validate_api_hash ⇒ Object
5
6
7
8
9
|
# File 'lib/cb/responses/Recommendation/recommendations.rb', line 5
def validate_api_hash
check_nonstandard_error_node(response)
required_response_field(root_node, response)
required_response_field('results', response[root_node])
end
|