Class: Aldous::Controller::Action::ResultExecutionService
- Inherits:
-
Object
- Object
- Aldous::Controller::Action::ResultExecutionService
- Defined in:
- lib/aldous/controller/action/result_execution_service.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#default_view_data ⇒ Object
readonly
Returns the value of attribute default_view_data.
-
#respondable ⇒ Object
readonly
Returns the value of attribute respondable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(controller, respondable, default_view_data) ⇒ ResultExecutionService
constructor
A new instance of ResultExecutionService.
- #perform ⇒ Object
Constructor Details
#initialize(controller, respondable, default_view_data) ⇒ ResultExecutionService
Returns a new instance of ResultExecutionService.
16 17 18 19 20 |
# File 'lib/aldous/controller/action/result_execution_service.rb', line 16 def initialize(controller, respondable, default_view_data) @controller = controller @respondable = respondable @default_view_data = default_view_data end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
14 15 16 |
# File 'lib/aldous/controller/action/result_execution_service.rb', line 14 def controller @controller end |
#default_view_data ⇒ Object (readonly)
Returns the value of attribute default_view_data.
14 15 16 |
# File 'lib/aldous/controller/action/result_execution_service.rb', line 14 def default_view_data @default_view_data end |
#respondable ⇒ Object (readonly)
Returns the value of attribute respondable.
14 15 16 |
# File 'lib/aldous/controller/action/result_execution_service.rb', line 14 def respondable @respondable end |
Class Method Details
.perform(controller, respondable, default_view_data) ⇒ Object
9 10 11 |
# File 'lib/aldous/controller/action/result_execution_service.rb', line 9 def perform(controller, respondable, default_view_data) self.new(controller, respondable, default_view_data).perform end |
Instance Method Details
#perform ⇒ Object
22 23 24 |
# File 'lib/aldous/controller/action/result_execution_service.rb', line 22 def perform respondable.action(controller).execute end |