Class: NominetEPP::Host::InfoResponse
- Inherits:
-
BasicResponse
- Object
- BasicResponse
- NominetEPP::Host::InfoResponse
- Defined in:
- lib/nominet-epp/responses/host/info_response.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ InfoResponse
constructor
A new instance of InfoResponse.
- #name ⇒ Object
Methods inherited from BasicResponse
#method, #method_missing, #respond_to?, #respond_to_missing?
Constructor Details
#initialize(response) ⇒ InfoResponse
Returns a new instance of InfoResponse.
4 5 6 7 |
# File 'lib/nominet-epp/responses/host/info_response.rb', line 4 def initialize(response) raise ArgumentError, "must be an EPP::Response" unless response.kind_of?(EPP::Response) super EPP::Host::InfoResponse.new(response) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class NominetEPP::BasicResponse
Instance Method Details
#name ⇒ Object
9 10 11 |
# File 'lib/nominet-epp/responses/host/info_response.rb', line 9 def name @name ||= @response.name.sub(/\.$/, '') end |