Module: Gandi::Domain::Nameservers
- Included in:
- Gandi::Domain
- Defined in:
- lib/gandi/domain/nameservers.rb
Instance Method Summary collapse
-
#nameservers ⇒ Object
Returns the domains nameservers.
-
#nameservers=(nameservers) ⇒ Object
Define the nameservers for a given domain.
Instance Method Details
#nameservers ⇒ Object
Returns the domains nameservers.
5 6 7 |
# File 'lib/gandi/domain/nameservers.rb', line 5 def nameservers @attributes['nameservers'] end |
#nameservers=(nameservers) ⇒ Object
Define the nameservers for a given domain. Uses the API call domain.nameservers.set Returns a Gandi::Operation object.
11 12 13 14 |
# File 'lib/gandi/domain/nameservers.rb', line 11 def nameservers=(nameservers) operation_hash = self.class.call('domain.nameservers.set', @fqdn, nameservers) Gandi::Operation.new(operation_hash['id'], operation_hash) end |