Class: Effective::ResourceExec

Inherits:
Object
  • Object
show all
Defined in:
app/models/effective/resource_exec.rb

Instance Method Summary collapse

Constructor Details

#initialize(instance, resource) ⇒ ResourceExec

Returns a new instance of ResourceExec.



5
6
7
8
# File 'app/models/effective/resource_exec.rb', line 5

def initialize(instance, resource)
  @instance = instance
  @resource = resource
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



14
15
16
# File 'app/models/effective/resource_exec.rb', line 14

def method_missing(method, *args, &block)
  @instance.send(method, *args)
end

Instance Method Details

#resourceObject



10
11
12
# File 'app/models/effective/resource_exec.rb', line 10

def resource
  @resource
end