Parent

Class/Module Index [+]

Quicksearch

Fog::DNS::Dynect::Zone

Public Class Methods

new(attributes={}) click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 19
def initialize(attributes={})
  self.ttl  ||= 3600
  super
end

Public Instance Methods

destroy() click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 24
def destroy
  requires :domain
  service.delete_zone(domain)
  true
end
domain=(new_domain) click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 31
def domain=(new_domain)
  attributes[:domain] = new_domain.split('/').last
end
nameservers() click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 45
def nameservers
  raise 'nameservers Not Implemented'
end
publish() click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 35
def publish
  requires :identity
  data = service.put_zone(identity, 'publish' => true)
  true
end
records() click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 41
def records
  @records ||= Fog::DNS::Dynect::Records.new(:zone => self, :service => service)
end
save() click to toggle source
# File lib/fog/dynect/models/dns/zone.rb, line 49
def save
  requires :domain, :email, :ttl
  data = service.post_zone(email, ttl, domain).body['data']
  merge_attributes(data)
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.