Module: Gandi::Domain::Status

Included in:
Gandi::Domain
Defined in:
lib/gandi/domain/status.rb

Instance Method Summary collapse

Instance Method Details

#lockObject

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

#unlockObject

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