Class: Fog::DNS::Bluebox::Zones

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

Instance Method Summary collapse

Instance Method Details

#allObject



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

def all
  data = service.get_zones.body['zones']
  load(data)
end

#get(zone_id) ⇒ Object



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

def get(zone_id)
  data = service.get_zone(zone_id).body
  new(data)
rescue Fog::Service::NotFound
  nil
end