Class: Cb::Responses::Resume

Inherits:
ApiResponse show all
Defined in:
lib/cb/responses/resumes/resume.rb

Instance Attribute Summary

Attributes inherited from ApiResponse

#models, #response

Instance Method Summary collapse

Methods inherited from ApiResponse

#initialize

Constructor Details

This class inherits a constructor from Cb::Responses::ApiResponse

Instance Method Details

#extract_modelsObject



18
19
20
# File 'lib/cb/responses/resumes/resume.rb', line 18

def extract_models
  response[root_node].map { |resume| Models::Resume.new(resume) }
end

#hash_containing_metadataObject



22
23
24
# File 'lib/cb/responses/resumes/resume.rb', line 22

def 
  response
end

#root_nodeObject



30
31
32
# File 'lib/cb/responses/resumes/resume.rb', line 30

def root_node
  'Results'
end

#statusObject



26
27
28
# File 'lib/cb/responses/resumes/resume.rb', line 26

def status
  response['Status']
end

#validate_api_hashObject



14
15
16
# File 'lib/cb/responses/resumes/resume.rb', line 14

def validate_api_hash
  required_response_field(root_node, response)
end