Class: GdsApi::LocalLinksManager

Inherits:
Base
  • Object
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



9
10
11
12
# File 'lib/gds_api/local_links_manager.rb', line 9

def local_authority(authority_slug)
  url = "#{endpoint}/api/local-authority?authority_slug=#{authority_slug}"
  get_json(url)
end


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