Class: Epp::Eis::DomainDeleteResponse
- Inherits:
-
Object
- Object
- Epp::Eis::DomainDeleteResponse
- Defined in:
- lib/epp-eis/domain.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(response) ⇒ DomainDeleteResponse
constructor
A new instance of DomainDeleteResponse.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ DomainDeleteResponse
Returns a new instance of DomainDeleteResponse.
35 36 37 |
# File 'lib/epp-eis/domain.rb', line 35 def initialize(response) @response = Nokogiri::XML(response) end |
Instance Method Details
#code ⇒ Object
39 40 41 |
# File 'lib/epp-eis/domain.rb', line 39 def code @response.css('epp response result').first['code'].to_i end |
#message ⇒ Object
43 44 45 |
# File 'lib/epp-eis/domain.rb', line 43 def @response.css('epp response result msg').text end |