Class: Epp::Eis::ContactDeleteResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/epp-eis/contact.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ContactDeleteResponse

Returns a new instance of ContactDeleteResponse.



70
71
72
# File 'lib/epp-eis/contact.rb', line 70

def initialize(response)
  @response = Nokogiri::XML(response)
end

Instance Method Details

#codeObject



74
75
76
# File 'lib/epp-eis/contact.rb', line 74

def code
  @response.css('epp response result').first['code'].to_i
end

#messageObject



78
79
80
# File 'lib/epp-eis/contact.rb', line 78

def message
  @response.css('epp response result msg').text
end