Class: InstantApi::Controller::BuildDestroy

Inherits:
Object
  • Object
show all
Defined in:
lib/instant_api/controller/build_destroy.rb

Instance Method Summary collapse

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

#buildObject



8
9
10
# File 'lib/instant_api/controller/build_destroy.rb', line 8

def build
  @controller.class_eval(&build_destroy)
end