Class: Fog::Network::StormOnDemand::Zones

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/network/zones.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



15
16
17
18
# File 'lib/fog/storm_on_demand/models/network/zones.rb', line 15

def all(options={})
  data = service.list_zones(options).body
  load(data)
end

#get(zone_id) ⇒ Object



10
11
12
13
# File 'lib/fog/storm_on_demand/models/network/zones.rb', line 10

def get(zone_id)
  z = service.get_zone(:id => zone_id).body
  new(z)
end