Class: GdsApi::LocalLinksManager
- Defined in:
- lib/gds_api/local_links_manager.rb
Instance Attribute Summary
Attributes inherited from Base
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
9 10 11 12 |
# File 'lib/gds_api/local_links_manager.rb', line 9 def () url = "#{endpoint}/api/local-authority?authority_slug=#{}" 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(, lgsl, lgil) url = "#{endpoint}/api/link?authority_slug=#{}&lgsl=#{lgsl}&lgil=#{lgil}" get_json(url) end |