Class: Epp::Eis::ContactCreateResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/epp-eis/contact.rb

Instance Method Summary collapse

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

#codeObject



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_dateObject



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_idObject



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

#messageObject



56
57
58
# File 'lib/epp-eis/contact.rb', line 56

def message
  @response.css('epp response result msg').text
end