mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
27 lines
546 B
Ruby
27 lines
546 B
Ruby
|
module Fog
|
||
|
module Compute
|
||
|
class Bluebox
|
||
|
class Real
|
||
|
|
||
|
# Get details of a location
|
||
|
#
|
||
|
# ==== Parameters
|
||
|
# * location_id<~Integer> - Id of location to lookup
|
||
|
#
|
||
|
# ==== Returns
|
||
|
# * response<~Excon::Response>:
|
||
|
# * body<~Array>:
|
||
|
# TODO
|
||
|
def get_location(location_id)
|
||
|
request(
|
||
|
:expects => 200,
|
||
|
:method => 'GET',
|
||
|
:path => "api/locations/#{location_id}.json"
|
||
|
)
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|