0.0
No commit activity in last 3 years
No release in over 3 years
A ruby wrapper for the RecruitMilitary Board HTTP API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.6.0
~> 1.11.1
~> 1.7.4

Runtime

~> 1.2.0
~> 1.6.1
~> 0.7.7
 Project Readme

Board::Client

TODO

  • Organization / User update add organization to user or add user to organization

Usage

board = Board::Client.new('YOUR_API_KEY_HERE')

Search

All methods named search return search object that support a few elements of convenience. Each search API returns a similar format and supports similar options.

search.results # current page of results
search.each_result { |result| p result } # iterate through all pages of results
search.total # total number of results
search.page # current page number

User Search

# should this mimic candidate search with keywords?
board.users.search(:email => "foo@bar.com")

# should this just be a special method?
board.users.find(42) # by id
board.users.find(:email => "foo@bar.com")
board.users.find(:email_md5 => "asdfasdf")

User Create

user = board.users.create(:email      => "foo@bar.com",
                          :first_name => "Bob",
                          :last_name  => "Smith")

user.email      # => "foo@bar.com"
user.first_name # => "Bob"
user.last_name  # => "Smith"
user.id         # => 42

Organization Search

board.organizations.search(:name => "Nike")

Organization Create

organization = board.organizations.create(:name => "Nike"
                                          :url  => "http://nike.com")

organization.name # => "Nike"
organization.url  # => "http://nike.com"
organization.id   # => 9

Organization Add User

board.organizations.add_user(:organization_id => organization.id, :user_id => 42)

Candidate Search

board.candidates.search(:keywords => "ruby",
                        :distance => 50,
                        :location => "Cincinnati, OH")

Candidate Invitations

invitation = client.candidates.invitation(:first_name => "Michael",
                                          :last_name  => "Jordan",
                                          :email      => "michael.jordan@nike.com")

invitation.url        # => "https://board.recruitmilitary.com/invitations/abcdefghijklmnopqrstuvwxyz0123456789"
invitation.first_name # => "Michael"
invitation.last_name  # => "Jordan"
invitation.email      # => "michael.jordan@nike.com"

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2011 Michael Guterl. See LICENSE for details