Class: GdsApi::Worldwide

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

#organisations_for_world_location(location_slug) ⇒ Object


12
13
14
# File 'lib/gds_api/worldwide.rb', line 12

def organisations_for_world_location(location_slug)
  get_list("#{base_url}/world-locations/#{location_slug}/organisations")
end

#world_location(location_slug) ⇒ Object


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

def world_location(location_slug)
  get_json("#{base_url}/world-locations/#{location_slug}")
end

#world_locationsObject


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

def world_locations
  get_list("#{base_url}/world-locations")
end