Class: CPS::Domain
- Inherits:
-
Object
- Object
- CPS::Domain
- Defined in:
- lib/cps-client/domain.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
Instance Method Summary collapse
- #create ⇒ Object
- #delete ⇒ Object
-
#get_binding ⇒ Object
this is only a helper method to access the objects binding method.
- #info ⇒ Object
-
#initialize(options = {}) ⇒ Domain
constructor
A new instance of Domain.
- #modify ⇒ Object
- #transfer ⇒ Object
- #transfer_lock ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Domain
Returns a new instance of Domain.
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cps-client/domain.rb', line 6 def initialize( = {}) @domain = [:domain].downcase.to_punycode @adminc = [:adminc] @techc = [:techc] @billc = [:billc] @ownerc = [:ownerc] @ns1 = [:ns1] @ns2 = [:ns2] @reg_type = [:reg_type] ||= 'transfer' @auth_info = [:auth_info] ||= '' @attribute = [:attribute] ||= 'domain' @transfer_lock = [:transfer_lock] ||= 'active' # active|disabled end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
4 5 6 |
# File 'lib/cps-client/domain.rb', line 4 def domain @domain end |
Instance Method Details
#create ⇒ Object
20 21 22 |
# File 'lib/cps-client/domain.rb', line 20 def create ErbHelper.build("domain_create", self) end |
#delete ⇒ Object
40 41 42 |
# File 'lib/cps-client/domain.rb', line 40 def delete ErbHelper.build("domain_delete", self) end |
#get_binding ⇒ Object
this is only a helper method to access the objects binding method
45 46 47 |
# File 'lib/cps-client/domain.rb', line 45 def get_binding binding end |
#info ⇒ Object
24 25 26 |
# File 'lib/cps-client/domain.rb', line 24 def info ErbHelper.build("domain_info", self) end |
#modify ⇒ Object
36 37 38 |
# File 'lib/cps-client/domain.rb', line 36 def modify ErbHelper.build("domain_modify", self) end |