Class: AgraApi::Organisation

Inherits:
Base
  • Object
show all
Defined in:
lib/agra_api/organisation.rb

Instance Method Summary collapse

Methods inherited from Base

#normalized_base_path

Instance Method Details

#base_pathObject



3
4
5
# File 'lib/agra_api/organisation.rb', line 3

def base_path
  'organisations'
end

#find_by_host(host) ⇒ Object



7
8
9
10
# File 'lib/agra_api/organisation.rb', line 7

def find_by_host(host)
  response = client.get_request(normalized_base_path, host: host)
  response.body
end