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