Sha256: 581c8e281b040f695b4b563bb3e57e137d1349a91f6ed44a02269e3d3de32b2b
Contents?: true
Size: 884 Bytes
Versions: 43
Compression:
Stored size: 884 Bytes
Contents
require 'fog/core/model' require 'fog/dnsmadeeasy/models/dns/records' module Fog module DNS class DNSMadeEasy class Zone < Fog::Model identity :id attribute :domain, :aliases => 'name' attribute :gtd_enabled, :aliases => 'gtdEnabled' attribute :nameservers, :aliases => 'nameServer' def destroy requires :identity service.delete_domain(identity) true end def records @records ||= begin Fog::DNS::DNSMadeEasy::Records.new( :zone => self, :service => service ) end end def save requires :domain data = service.create_domain(domain).body self.identity = data['name'] merge_attributes(data) true end end end end end
Version data entries
43 entries across 41 versions & 6 rubygems