Class: Core::Endpoint::BasicHandler::Actions::Guards::GuardProxy

Inherits:
ActiveSupport::ProxyObject
  • Object
show all
Defined in:
app/api/core/endpoint/basic_handler/actions/guards.rb

Instance Method Summary collapse

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

Returns:

  • (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