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


34
35
36
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 34

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, *args, &block) ⇒ Object (protected)


42
43
44
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 42

def method_missing(name, *args, &block)
  @object.send(name, *args, &block)
end

Instance Method Details

#respond_to?(method, private_methods = false) ⇒ Boolean


38
39
40
# File 'app/api/core/endpoint/basic_handler/actions/guards.rb', line 38

def respond_to?(method, private_methods = false)
  super || @object.respond_to?(method, private_methods)
end