Module: DLDInternet::OpenSRS::API::Domain::MixIns::Modify::DomainAssignNS
- Included in:
- DLDInternet::OpenSRS::API::Domain::Modify
- Defined in:
- lib/dldinternet/opensrs/api/domain/mixins/modify/domainassign_ns.rb
Instance Method Summary collapse
-
#AssignDomainNameServers(domain, nameservers, cookiep = nil) ⇒ Object
noinspection RubyUnnecessaryReturnValue.
Instance Method Details
#AssignDomainNameServers(domain, nameservers, cookiep = nil) ⇒ Object
noinspection RubyUnnecessaryReturnValue
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/dldinternet/opensrs/api/domain/mixins/modify/domainassign_ns.rb', line 12 def AssignDomainNameServers(domain,nameservers, =nil) data = { object: 'domain', action: 'advanced_update_nameservers', cookie: ( || (domain)), attributes: { op_type: 'assign', assign_ns: (nameservers.is_a?(Array) ? nameservers : nameservers.to_s.split(%r{\s*,\s*})) }, } getResponse(data, 'response_text') end |