Class: GdsApi::LocalLinksManager
- Inherits:
-
Base
- Object
- Base
- GdsApi::LocalLinksManager
show all
- Defined in:
- lib/gds_api/local_links_manager.rb
Instance Attribute Summary
Attributes inherited from Base
#options
Instance Method Summary
collapse
Methods inherited from Base
#client, #create_client, #get_list, #initialize, #url_for_slug
Constructor Details
This class inherits a constructor from GdsApi::Base
Instance Method Details
#local_authority(authority_slug) ⇒ Object
14
15
16
17
|
# File 'lib/gds_api/local_links_manager.rb', line 14
def local_authority(authority_slug)
url = "#{endpoint}/api/local-authority?authority_slug=#{authority_slug}"
get_json(url)
end
|
#local_authority_by_custodian_code(local_custodian_code) ⇒ Object
19
20
21
22
|
# File 'lib/gds_api/local_links_manager.rb', line 19
def local_authority_by_custodian_code(local_custodian_code)
url = "#{endpoint}/api/local-authority?local_custodian_code=#{local_custodian_code}"
get_json(url)
end
|
#local_link(authority_slug, lgsl, lgil) ⇒ Object
4
5
6
7
|
# File 'lib/gds_api/local_links_manager.rb', line 4
def local_link(authority_slug, lgsl, lgil)
url = "#{endpoint}/api/link?authority_slug=#{authority_slug}&lgsl=#{lgsl}&lgil=#{lgil}"
get_json(url)
end
|
#local_link_by_custodian_code(local_custodian_code, lgsl, lgil) ⇒ Object
9
10
11
12
|
# File 'lib/gds_api/local_links_manager.rb', line 9
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
|