Sha256: c0941c762588c7d5fad4a2cff73192400214b8b430ab8633bad87d010555ac58

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

module CareerBuilder

  module Requests

    class GetResume < Request::Authenticated

      VALID_OPTIONS = [:resume_id, :cust_acct_code, :get_word_doc_if_available].freeze

      def perform
        super
        response = perform_request("V2_GetResume", transform_options_to_xml(options))

        if response =~ /ResumeID/ # valid response
          API::Resume.parse(response, :single => true)
        else
          raise OutOfCredits
        end
      end

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
career_builder-0.1.1 lib/career_builder/requests/get_resume.rb
career_builder-0.1.0 lib/career_builder/requests/get_resume.rb