Class: Core::Endpoint::BasicHandler::Actions::Guards::GuardProxy
- Inherits:
-
ActiveSupport::ProxyObject
- Object
- ActiveSupport::ProxyObject
- Core::Endpoint::BasicHandler::Actions::Guards::GuardProxy
- Defined in:
- app/api/core/endpoint/basic_handler/actions/guards.rb
Instance Method Summary collapse
-
#initialize(request, object) ⇒ GuardProxy
constructor
A new instance of GuardProxy.
- #respond_to?(method, private_methods = false) ⇒ Boolean
Constructor Details
#initialize(request, object) ⇒ GuardProxy
Returns a new instance of GuardProxy.
39 40 41 |
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 39 def initialize(request, object) @request, @object = request, object end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object (protected)
47 48 49 |
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 47 def method_missing(name, ...) @object.send(name, ...) end |
Instance Method Details
#respond_to?(method, private_methods = false) ⇒ Boolean
43 44 45 |
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 43 def respond_to?(method, private_methods = false) super || @object.respond_to?(method, private_methods) end |