From 7d2b460149e0ff96d5ea8e49487f55b0cacdc137 Mon Sep 17 00:00:00 2001 From: Joshua Gross Date: Thu, 23 Jan 2014 18:47:24 -0500 Subject: [PATCH] making a reader for domain to duplicate name attribute --- lib/fog/rage4/models/dns/record.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/fog/rage4/models/dns/record.rb b/lib/fog/rage4/models/dns/record.rb index 42e022ba2..a2420cdf1 100644 --- a/lib/fog/rage4/models/dns/record.rb +++ b/lib/fog/rage4/models/dns/record.rb @@ -9,7 +9,7 @@ module Fog identity :id - attribute :name, :aliases => "domain" + attribute :name attribute :value, :aliases => "content" attribute :ttl attribute :zone_id, :aliases => "domain_id" @@ -20,6 +20,10 @@ module Fog super end + def domain + name + end + def destroy service.delete_record(identity) true