lib/fog/dnsimple/models/dns/record.rb in fog-1.8.0 vs lib/fog/dnsimple/models/dns/record.rb in fog-1.9.0

- old
+ new

@@ -24,11 +24,11 @@ self.ttl ||= 3600 super end def destroy - connection.delete_record(zone.domain, identity) + service.delete_record(zone.domain, identity) true end def zone @zone @@ -40,17 +40,17 @@ options[:prio] = priority if priority options[:ttl] = ttl if ttl # decide whether its a new record or update of an existing if id.nil? - data = connection.create_record(zone.domain, name, type, value, options) + data = service.create_record(zone.domain, name, type, value, options) else options[:name] = name if name options[:content] = value if value options[:type] = type if type - data = connection.update_record(zone.domain, id, options) + data = service.update_record(zone.domain, id, options) end - + merge_attributes(data.body["record"]) true end private