Class: Fog::DNS::Linode::Zones

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

Instance Method Summary collapse

Instance Method Details

#allObject



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

def all
  data = service.domain_list.body['DATA']
  load(data)
end

#get(zone_id) ⇒ Object



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

def get(zone_id)
  if data = service.domain_list(zone_id).body['DATA'].first
    new(data)
  else
    nil
  end
end