Class: Fog::Compute::Google::Regions
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Google::Regions
- Defined in:
- lib/fog/google/models/compute/regions.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
11 12 13 14 |
# File 'lib/fog/google/models/compute/regions.rb', line 11 def all data = service.list_regions.body load(data['items'] || []) end |
#get(identity) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/fog/google/models/compute/regions.rb', line 16 def get(identity) if region = service.get_region(identity).body new(region) end rescue Fog::Errors::NotFound nil end |