Class: Epp::Eis::ContactCreateResponse
- Inherits:
-
Object
- Object
- Epp::Eis::ContactCreateResponse
- Defined in:
- lib/epp-eis/contact.rb
Instance Method Summary collapse
- #code ⇒ Object
- #contact_create_date ⇒ Object
- #contact_id ⇒ Object
-
#initialize(response) ⇒ ContactCreateResponse
constructor
A new instance of ContactCreateResponse.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ContactCreateResponse
Returns a new instance of ContactCreateResponse.
48 49 50 |
# File 'lib/epp-eis/contact.rb', line 48 def initialize(response) @response = Nokogiri::XML(response) end |
Instance Method Details
#code ⇒ Object
52 53 54 |
# File 'lib/epp-eis/contact.rb', line 52 def code @response.css('epp response result').first['code'].to_i end |
#contact_create_date ⇒ Object
64 65 66 |
# File 'lib/epp-eis/contact.rb', line 64 def contact_create_date @response.css('contact|creData contact|crDate', 'contact' => XML_NS_CONTACT).text end |
#contact_id ⇒ Object
60 61 62 |
# File 'lib/epp-eis/contact.rb', line 60 def contact_id @response.css('contact|creData contact|id', 'contact' => XML_NS_CONTACT).text end |
#message ⇒ Object
56 57 58 |
# File 'lib/epp-eis/contact.rb', line 56 def @response.css('epp response result msg').text end |