Class: Fog::DNS::StormOnDemand::Zones

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

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



20
21
22
23
# File 'lib/fog/storm_on_demand/models/dns/zones.rb', line 20

def all(options={})
  zones = service.list_zones(options).body['items']
  load(zones)
end

#create(options) ⇒ Object



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

def create(options)
  zone = service.create_zone(options).body
  new(zone)
end

#get(zone_id) ⇒ Object



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

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