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

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

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



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

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

#get(zone_id) ⇒ Object



7
8
9
10
# File 'lib/fog/network/storm_on_demand/models/zones.rb', line 7

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