Class: EPP::Domain::CreateResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/epp-client/domain/create_response.rb

Instance Method Summary collapse

Methods inherited from Response

#initialize, #method, #method_missing, #respond_to?, #respond_to_missing?

Methods included from ResponseHelper

#nodes_for_xpath, #value_for_xpath, #values_for_xpath

Constructor Details

This class inherits a constructor from EPP::Domain::Response

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EPP::Domain::Response

Instance Method Details

#creation_dateObject



9
10
11
# File 'lib/epp-client/domain/create_response.rb', line 9

def creation_date
  @crdate ||= value_for_xpath('//domain:crDate') && Time.parse(value_for_xpath('//domain:crDate'))
end

#expiration_dateObject



12
13
14
# File 'lib/epp-client/domain/create_response.rb', line 12

def expiration_date
  @exdate ||= value_for_xpath('//domain:exDate') && Time.parse(value_for_xpath('//domain:exDate'))
end

#nameObject



6
7
8
# File 'lib/epp-client/domain/create_response.rb', line 6

def name
  @name ||= value_for_xpath('//domain:name')
end