Sha256: c4f748983117376f66136f497da2bd3336314852ac135b393561b457989ea2f4
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
module CareerBuilder class Client module GetResume VALID_OPTIONS = [:resume_id, :cust_acct_code, :get_word_doc_if_available].freeze def get_resume(options = {}) unless (invalid_options = options.keys - VALID_OPTIONS).empty? raise ArgumentError, "Invalid options #{invalid_options}" end response = auth_request("V2_GetResume", options) if response =~ /ResumeID/ # valid response API::Resume.parse(response, :single => true) else raise OutOfCredits end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
career_builder-0.2.2 | lib/career_builder/client/get_resume.rb |
career_builder-0.2.1 | lib/career_builder/client/get_resume.rb |
career_builder-0.2.0 | lib/career_builder/client/get_resume.rb |