Class: GdsApi::LicenceApplication

Inherits:
Base
  • Object
show all
Defined in:
lib/gds_api/licence_application.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

#all_licencesObject



4
5
6
# File 'lib/gds_api/licence_application.rb', line 4

def all_licences
  get_json("#{@endpoint}/api/licences")
end

#details_for_licence(id, snac_code = nil) ⇒ Object



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

def details_for_licence(id, snac_code = nil)
  return nil if id.nil?

  get_json(build_licence_url(id, snac_code))
end