Repository is archived
No commit activity in last 3 years
No release in over 3 years
https://courttribunalfinder.service.gov.uk/ API client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0.41
~> 10.3
~> 3.1
~> 2.9
~> 1.20
 Project Readme

Courtfinder::Client

Client for UK Government Court and tribunal finder API

Currently only implemented querying courts for 'Housing possesion'

Installation

Add this line to your application's Gemfile:

gem 'courtfinder-client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install courtfinder-client

Usage

Sample usage:

require 'courtfinder/client'

client = Courtfinder::Client::HousingPossession.new
client.get 'SG8 0LT'

Which will return the address of the court in 'Housing possession' area of law for the given postcode.

TODO: Add support for courts in other areas of law.

Updating the gem

When you add more features and you feel that a significant change has been made, increase the gem version number and publish it to RubyGems:

$ gem build courtfinder-client.gemspec
$ gem push courtfinder-client-X.Y.Z.gem

Contributing

  1. Fork it ( https://github.com/ministryofjustice/courtfinder-client/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request