Class: Fog::Compute::Bluebox::Locations

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/bluebox/models/compute/locations.rb

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
13
# File 'lib/fog/bluebox/models/compute/locations.rb', line 10

def all
  data = service.get_locations.body
  load(data)
end

#get(location_id) ⇒ Object



15
16
17
18
19
20
# File 'lib/fog/bluebox/models/compute/locations.rb', line 15

def get(location_id)
  response = service.get_location(location_id)
  new(response.body)
rescue Fog::Compute::Bluebox::NotFound
  nil
end