Sha256: ab491dff5f1bb08c9af03481b995f4789cda37ddea6bd03a1c07f5e1f1260924
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
module UkCompaniesHouse module Search class << self def client UkCompaniesHouse::Client.new end # Search Companies House def all(q, items_per_page = nil, start_index = nil) params = {q: q, items_per_page: items_per_page, start_index: start_index} client.get("search", params) end #Search company information def company(q, items_per_page = nil, start_index = nil) params = {q: q, items_per_page: items_per_page, start_index: start_index} client.get("search/companies", params) end # Search for officer information def officers(q, items_per_page = nil, start_index = nil) params = {q: q, items_per_page: items_per_page, start_index: start_index} client.get("search/officers", params) end # Search for disqualified officer information def disqualified_officers(q, items_per_page = nil, start_index = nil) params = {q: q, items_per_page: items_per_page, start_index: start_index} client.get("search/disqualified-officers", params) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uk_companies_house-0.1.5 | lib/uk_companies_house/search.rb |
uk_companies_house-0.1.3 | lib/uk_companies_house/search.rb |