Sha256: bb3448b5b99a8892049f2128df472cf92d025c5de93d1f0dd1c1afe76c0cc5ed

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

require 'yajl'

require 'board/request'
require 'board/candidate_search'

module Board
  class Client

    include Request

    class << self
      attr_accessor :default_url
    end
    self.default_url = 'https://board.recruitmilitary.com/api/v1'

    def initialize(api_key, url = Client.default_url)
      @api_key = api_key
      @url     = url
    end

    def candidate_searches(params)
      get "/candidate_searches", params
    end

    def find_user(params)
      get "/users", params
    end

    def mark_user_invalid(params)
      get "/users/invalid", params
    end

    def unsubscribe(params)
      get "/users/unsubscribe", params
    end

    def create_candidate_invitation(params)
      post "/candidate_invitations", params
    end

    def find_candidate(candidate_id)
      get "/candidates/#{candidate_id}", {}
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
board-client-0.3.0 lib/board/client.rb
board-client-0.2.0 lib/board/client.rb