Class: GdsApi::Worldwide
- Inherits:
-
Base
- Object
- Base
- GdsApi::Worldwide
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
13
14
15
|
# File 'lib/gds_api/worldwide.rb', line 13
def organisations_for_world_location(location_slug)
get_list! "#{base_url}/world-locations/#{location_slug}/organisations"
end
|
#world_location(location_slug) ⇒ Object
9
10
11
|
# File 'lib/gds_api/worldwide.rb', line 9
def world_location(location_slug)
get_json "#{base_url}/world-locations/#{location_slug}"
end
|
#world_locations ⇒ Object
5
6
7
|
# File 'lib/gds_api/worldwide.rb', line 5
def world_locations
get_list! "#{base_url}/world-locations"
end
|