Class: Fog::Compute::ProfitBricks::Regions
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::ProfitBricks::Regions
- Defined in:
- lib/fog/compute/profit_bricks/models/regions.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
9 10 11 |
# File 'lib/fog/compute/profit_bricks/models/regions.rb', line 9 def all() load(service.get_all_locations.body["getAllLocationsResponse"]) end |
#get(id) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/fog/compute/profit_bricks/models/regions.rb', line 13 def get(id) region = service.get_location(id).body["getLocationResponse"] Excon::Errors new(region) rescue Excon::Errors::NotFound nil end |