Module: Gandi::Domain::Status
- Included in:
- Gandi::Domain
- Defined in:
- lib/gandi/domain/status.rb
Instance Method Summary collapse
-
#lock ⇒ Object
Lock a domain, set the ‘clientTransferProhibited’ status flag.
-
#unlock ⇒ Object
Unlock a domain, unset the ‘clientTransferProhibited’ status flag.
Instance Method Details
#lock ⇒ Object
Lock a domain, set the ‘clientTransferProhibited’ status flag. Returns a Gandi::Operation object.
6 7 8 9 |
# File 'lib/gandi/domain/status.rb', line 6 def lock operation_hash = self.class.call('domain.status.lock', @fqdn) Gandi::Operation.new(operation_hash['id'], operation_hash) end |
#unlock ⇒ Object
Unlock a domain, unset the ‘clientTransferProhibited’ status flag. Returns a Gandi::Operation object.
13 14 15 16 |
# File 'lib/gandi/domain/status.rb', line 13 def unlock operation_hash = self.class.call('domain.status.unlock', @fqdn) Gandi::Operation.new(operation_hash['id'], operation_hash) end |