Class: Effective::ResourceExec
- Inherits:
-
Object
- Object
- Effective::ResourceExec
- Defined in:
- app/models/effective/resource_exec.rb
Instance Method Summary collapse
-
#initialize(instance, resource) ⇒ ResourceExec
constructor
A new instance of ResourceExec.
- #method_missing(method, *args, &block) ⇒ Object
- #resource ⇒ Object
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
#resource ⇒ Object
10 11 12 |
# File 'app/models/effective/resource_exec.rb', line 10 def resource @resource end |