Method: Fog::Compute::IBM::Mock#get_location
- Defined in:
- lib/fog/ibm/requests/compute/get_location.rb
permalink #get_location(location_id) ⇒ Object
[View source]
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/fog/ibm/requests/compute/get_location.rb', line 37 def get_location(location_id) response = Excon::Response.new if location_exists? location_id response.status = 200 response.body = self.data[:locations][location_id] else response.status = 404 end response end |