Browse files

add notes about Domain.delete!

  • Loading branch information...
1 parent 9d3acd6 commit 08b33fcf3edc9e37dbc55c0b496fb230813906cf @itspriddle itspriddle committed Feb 14, 2012
Showing with 8 additions and 1 deletion.
  1. +5 −0 README.md
  2. +3 −1 lib/enom/domain.rb
View
5 README.md
@@ -48,6 +48,11 @@ Enom::Domain.available?("example.com")
# Register a domain
d = Enom::Domain.register!("example.com")
# => #<Enom::Domain:0x1019f3b78...
+
+# Delete a registration (domain must be less than 5 days old and your account
+# must be on Enom's DeleteRegistration whitelist - your Enom account rep can
+# enable it for you)
+Enom::Domain.delete!("example.com")
```
## Domain Operations
View
4 lib/enom/domain.rb
@@ -112,7 +112,9 @@ def self.register!(name, options = {})
Domain.find(name)
end
- # Delete a domain name registration.
+ # Delete a domain name registration from your account. The domain must be
+ # less than 5 days old and you must be on Enom's "DeleteRegistration
+ # whitelist" for resellers (your account rep can enable it for you).
#
# Returns true if successful, false if failed.
def self.delete!(name, options = {})

0 comments on commit 08b33fc

Please sign in to comment.