CPR Client

A client for looking up people in the CPR registry (as a private company). It is backed by HTTPClient.

Install

You can install cpr-client via rubygems:

$ gem install carrierwave

Or add this to your Gemfile

gem 'cpr-client'

Usage

# The client is connecting to the demo environment
client = CPRClient.new(username, password, true)
record = client.lookup('0707614285')

if record.nil?
  puts "The record was not found"
elsif record.protected?
  puts "The record has name and address protection"
else
  puts record[:adrnvn]
  puts record[:adrnvn, :t]
end