Class: GdsApi::Organisations

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

#organisation(organisation_slug) ⇒ Object



8
9
10
# File 'lib/gds_api/organisations.rb', line 8

def organisation(organisation_slug)
  get_json "#{base_url}/organisations/#{organisation_slug}"
end

#organisationsObject



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

def organisations
  get_list "#{base_url}/organisations"
end