Sha256: 04e3583705f23efb814029f7ccfaa7656189495ef1afaaaf75f1574f90a882a1
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'rest_client' require 'yajl' require 'board/api' module Board autoload :CandidateSearch, 'board/candidate_search' class Client 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_invitations @candidate_invitations ||= API::CandidateInvitations.new(@api_key, @url) end def users @users ||= API::Users.new(@api_key, @url) end def candidate_search(params) API::CandidateSearches.new(@api_key, @url).create(params) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
board-client-0.1.0 | lib/board/client.rb |