lib/gds_api/local_links_manager.rb
require_relative "base" class GdsApi::LocalLinksManager < GdsApi::Base def local_link(authority_slug, lgsl, lgil) url = "#{endpoint}/api/link?authority_slug=#{authority_slug}&lgsl=#{lgsl}&lgil=#{lgil}" get_json(url) end def local_link_by_custodian_code(local_custodian_code, lgsl, lgil) url = "#{endpoint}/api/link?local_custodian_code=#{local_custodian_code}&lgsl=#{lgsl}&lgil=#{lgil}" get_json(url) end def local_authority(authority_slug) url = "#{endpoint}/api/local-authority?authority_slug=#{authority_slug}" get_json(url) end def local_authority_by_custodian_code(local_custodian_code) url = "#{endpoint}/api/local-authority?local_custodian_code=#{local_custodian_code}" get_json(url) end end