Class: EPP::Contact::Response
- Inherits:
-
Object
- Object
- EPP::Contact::Response
show all
- Includes:
- ResponseHelper
- Defined in:
- lib/epp-client/contact/response.rb
Instance Method Summary
collapse
#nodes_for_xpath, #value_for_xpath, #values_for_xpath
Constructor Details
#initialize(response) ⇒ Response
6
7
8
|
# File 'lib/epp-client/contact/response.rb', line 6
def initialize(response)
@response = response
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
10
11
12
13
|
# File 'lib/epp-client/contact/response.rb', line 10
def method_missing(meth, *args, &block)
return super unless @response.respond_to?(meth)
@response.send(meth, *args, &block)
end
|
Instance Method Details
#method(sym) ⇒ Object
23
24
25
|
# File 'lib/epp-client/contact/response.rb', line 23
def method(sym)
respond_to_missing?(sym, true) ? @response.method(sym) : super
end
|
#respond_to?(method, include_private = false) ⇒ Boolean
20
21
22
|
# File 'lib/epp-client/contact/response.rb', line 20
def respond_to?(method, include_private = false)
respond_to_missing?(method, include_private) || super
end
|
#respond_to_missing?(method, include_private) ⇒ Boolean
15
16
17
|
# File 'lib/epp-client/contact/response.rb', line 15
def respond_to_missing?(method, include_private)
@response.respond_to?(method, include_private)
end
|