Class: Epp::Eis::ContactUpdateResponse
- Inherits:
-
Object
- Object
- Epp::Eis::ContactUpdateResponse
- Defined in:
- lib/epp-eis/contact.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(response) ⇒ ContactUpdateResponse
constructor
A new instance of ContactUpdateResponse.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ContactUpdateResponse
Returns a new instance of ContactUpdateResponse.
134 135 136 |
# File 'lib/epp-eis/contact.rb', line 134 def initialize(response) @response = Nokogiri::XML(response) end |
Instance Method Details
#code ⇒ Object
138 139 140 |
# File 'lib/epp-eis/contact.rb', line 138 def code @response.css('epp response result').first['code'].to_i end |
#message ⇒ Object
142 143 144 |
# File 'lib/epp-eis/contact.rb', line 142 def @response.css('epp response result msg').text end |