mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
making a reader for domain to duplicate name attribute
This commit is contained in:
parent
b3fae0dc88
commit
7d2b460149
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,7 @@ module Fog
|
||||||
|
|
||||||
identity :id
|
identity :id
|
||||||
|
|
||||||
attribute :name, :aliases => "domain"
|
attribute :name
|
||||||
attribute :value, :aliases => "content"
|
attribute :value, :aliases => "content"
|
||||||
attribute :ttl
|
attribute :ttl
|
||||||
attribute :zone_id, :aliases => "domain_id"
|
attribute :zone_id, :aliases => "domain_id"
|
||||||
|
@ -20,6 +20,10 @@ module Fog
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def domain
|
||||||
|
name
|
||||||
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
service.delete_record(identity)
|
service.delete_record(identity)
|
||||||
true
|
true
|
||||||
|
|
Loading…
Add table
Reference in a new issue