BluelineServices

The blueline_services gem is a ruby gem used for submitted background check requests to Blueline Services

Using this API requires that you have an existing account with Blueline Services, specifically a screening product, username, and password.

Install

gem install blueline_services

or add the following line to Gemfile:

gem 'blueline_services'

and run bundle install from your shell.

Usage

To create a new background check and submit it.

request = BluelineServices::Request.new do |r|
  r.user_name = "XML_TST",
  r.password = "ScROLL447breaK",
  r.type = "TST Media",
  r.reference_id = 112233,
  r.reference = "ABC Company Inc.",
  r.given_name = "HANK",
  r.family_name = "MESS",
  r.ssn = "333-22-1111",
  r.date_of_birth = "1960-01-01",
  r.postal_code = "60750",
  r.region = "IL",
  r.municipality = "FANTASY ISLAND",
  r.address_line = 899,
  r.street_name = "LINCOLN RD",
  r.postback_url = "http://127.0.0.1/listen.php",
  r.postback_username = "user",
  r.postback_password = "secret",
  r.use_defaults = true
end

# or initialize with a hash

request = BluelineServices::Request.new(hash)

# or initialize with nothing and build on the fly

request = BluelineServices::Request.new
request.user_name = "..."

# and then add some screens

request.criminal_county_screen do |screen|
  screen.region "WA"
  screen.county "KING"
end

request.submit # => BluelineServices::Response