Class: InstantApi::Controller::BuildDestroy
- Inherits:
-
Object
- Object
- InstantApi::Controller::BuildDestroy
- Defined in:
- lib/instant_api/controller/build_destroy.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(controller, model_class_name = nil) ⇒ BuildDestroy
constructor
A new instance of BuildDestroy.
Constructor Details
#initialize(controller, model_class_name = nil) ⇒ BuildDestroy
Returns a new instance of BuildDestroy.
4 5 6 |
# File 'lib/instant_api/controller/build_destroy.rb', line 4 def initialize(controller, model_class_name = nil) @controller = controller end |
Instance Method Details
#build ⇒ Object
8 9 10 |
# File 'lib/instant_api/controller/build_destroy.rb', line 8 def build @controller.class_eval(&build_destroy) end |