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