# File lib/fog/rage4/models/dns/record.rb, line 33 def destroy service.delete_record(id) true end
# File lib/fog/rage4/models/dns/record.rb, line 29 def domain name end
# File lib/fog/rage4/models/dns/record.rb, line 42 def save requires :name, :type, :value options = {} options[:priority] = priority if priority options[:ttl] = ttl if ttl options[:geozone] = geo_region_id if geo_region_id options[:geolock] = geo_lock if geo_lock options[:geolat] = geo_lat if geo_lat options[:geolong] = geo_long if geo_long options[:udplimit] = udp_limit if udp_limit # decide whether its a new record or update of an existing if id.nil? data = service.create_record(zone.id, name, value, type, options) else data = service.update_record(id, name, value, type, options) end merge_attributes(options) merge_attributes(:name => name, :value => value, :type => type) true end
Generated with the Darkfish Rdoc Generator 2.