Class: NominetEPP::Host::CreateResponse

Inherits:
BasicResponse show all
Defined in:
lib/nominet-epp/responses/host/create_response.rb

Instance Method Summary collapse

Methods inherited from BasicResponse

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

Constructor Details

#initialize(response) ⇒ CreateResponse

Returns a new instance of CreateResponse.

Raises:

  • (ArgumentError)


4
5
6
7
# File 'lib/nominet-epp/responses/host/create_response.rb', line 4

def initialize(response)
  raise ArgumentError, "must be an EPP::Response" unless response.kind_of?(EPP::Response)
  super EPP::Host::CreateResponse.new(response)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class NominetEPP::BasicResponse

Instance Method Details

#nameObject



9
10
11
# File 'lib/nominet-epp/responses/host/create_response.rb', line 9

def name
  @name ||= @response.name.sub(/\.$/, '')
end