Class: Epp::Eis::DomainTransferResponse
- Inherits:
-
Object
- Object
- Epp::Eis::DomainTransferResponse
- Defined in:
- lib/epp-eis/domain.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(response) ⇒ DomainTransferResponse
constructor
A new instance of DomainTransferResponse.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ DomainTransferResponse
Returns a new instance of DomainTransferResponse.
49 50 51 |
# File 'lib/epp-eis/domain.rb', line 49 def initialize(response) @response = Nokogiri::XML(response) end |
Instance Method Details
#code ⇒ Object
53 54 55 |
# File 'lib/epp-eis/domain.rb', line 53 def code @response.css('epp response result').first['code'].to_i end |
#message ⇒ Object
57 58 59 |
# File 'lib/epp-eis/domain.rb', line 57 def @response.css('epp response result msg').text end |