Sha256: 3965b72a0a60c5d285e1bf45663afb6048b719eb50e7af6be69f0cf2d7d5301c

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

module CareerBuilder

  class Request::Authenticated < Request

    def perform
      super
      require_authentication
      options.merge!(:session_token => session_token) unless options.has_key?(:session_token)
    end

    private

    def require_authentication
      if !client.authenticated?
        unless client.authenticate
          raise InvalidCredentials
        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/request/authenticated.rb
career_builder-0.1.0 lib/career_builder/request/authenticated.rb