module Caselaw::Jurisdictions

Constants

API_ENDPOINT

Public Instance Methods

jurisdiction(jurisdiction_term) click to toggle source

Search for a specific Jurisdiction

# File lib/caselaw/client/jurisdictions.rb, line 11
def jurisdiction(jurisdiction_term)
  slug = slug(jurisdiction_term)
  path = API_ENDPOINT + slug
  Hashie::Mash.new(request(path))
end
search_jurisdictions() click to toggle source

Return all Jurisdictions

# File lib/caselaw/client/jurisdictions.rb, line 6
def search_jurisdictions
  Hashie::Mash.new(request(API_ENDPOINT))
end