Class: Epp::Eis::NssetCreateResponse
- Inherits:
-
Object
- Object
- Epp::Eis::NssetCreateResponse
- Defined in:
- lib/epp-eis/nsset.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(response) ⇒ NssetCreateResponse
constructor
A new instance of NssetCreateResponse.
- #message ⇒ Object
- #nsset_create_date ⇒ Object
- #nsset_id ⇒ Object
Constructor Details
#initialize(response) ⇒ NssetCreateResponse
Returns a new instance of NssetCreateResponse.
46 47 48 |
# File 'lib/epp-eis/nsset.rb', line 46 def initialize(response) @response = Nokogiri::XML(response) end |
Instance Method Details
#code ⇒ Object
50 51 52 |
# File 'lib/epp-eis/nsset.rb', line 50 def code @response.css('epp response result').first['code'].to_i end |
#message ⇒ Object
54 55 56 |
# File 'lib/epp-eis/nsset.rb', line 54 def @response.css('epp response result msg').text end |
#nsset_create_date ⇒ Object
62 63 64 |
# File 'lib/epp-eis/nsset.rb', line 62 def nsset_create_date @response.css('nsset|creData nsset|crDate', 'nsset' => XML_NS_NSSET).text end |
#nsset_id ⇒ Object
58 59 60 |
# File 'lib/epp-eis/nsset.rb', line 58 def nsset_id @response.css('nsset|creData nsset|id', 'nsset' => XML_NS_NSSET).text end |