Class: Epp::Eis::ContactDeleteResponse
- Inherits:
-
Object
- Object
- Epp::Eis::ContactDeleteResponse
- Defined in:
- lib/epp-eis/contact.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(response) ⇒ ContactDeleteResponse
constructor
A new instance of ContactDeleteResponse.
- #message ⇒ Object
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
#code ⇒ Object
74 75 76 |
# File 'lib/epp-eis/contact.rb', line 74 def code @response.css('epp response result').first['code'].to_i end |
#message ⇒ Object
78 79 80 |
# File 'lib/epp-eis/contact.rb', line 78 def @response.css('epp response result msg').text end |