Sha256: 54bcf22364da715ce7e55289b22cf0287ff0ffa5b6ecfa205d648f0dd8e0bdf1

Contents?: true

Size: 814 Bytes

Versions: 2

Compression:

Stored size: 814 Bytes

Contents

module CareerBuilder

  class Client

    attr_reader :email, :password, :session_token

    def initialize(email, password)
      @email, @password = email, password
    end

    def authenticate
      @session_token = Requests::Authentication.new(self, :email => email, :password => password).perform
    end

    def authenticated?
      !session_token.nil?
    end

    def resumes(options = {})
      Resume::LazyCollection.new(self, options)
    end

    def advanced_resume_search(options = {})
      Requests::AdvancedResumeSearch.new(self, options).perform
    end

    def get_resume(options = {})
      Requests::GetResume.new(self, options).perform
    end

    def resume_actions_remaining_today(options = {})
      Requests::ResumeActionsRemainingToday.new(self, options).perform
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
career_builder-0.1.1 lib/career_builder/client.rb
career_builder-0.1.0 lib/career_builder/client.rb