Class: Aldous::Respondable::SendData::SendDataAction
- Inherits:
-
Object
- Object
- Aldous::Respondable::SendData::SendDataAction
- Defined in:
- lib/aldous/respondable/send_data.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#view_data ⇒ Object
readonly
Returns the value of attribute view_data.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(data, options, controller, view_data) ⇒ SendDataAction
constructor
A new instance of SendDataAction.
Constructor Details
#initialize(data, options, controller, view_data) ⇒ SendDataAction
Returns a new instance of SendDataAction.
23 24 25 26 27 28 |
# File 'lib/aldous/respondable/send_data.rb', line 23 def initialize(data, , controller, view_data) @controller = controller @view_data = view_data @data = data @options = end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
21 22 23 |
# File 'lib/aldous/respondable/send_data.rb', line 21 def controller @controller end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
21 22 23 |
# File 'lib/aldous/respondable/send_data.rb', line 21 def data @data end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
21 22 23 |
# File 'lib/aldous/respondable/send_data.rb', line 21 def @options end |
#view_data ⇒ Object (readonly)
Returns the value of attribute view_data.
21 22 23 |
# File 'lib/aldous/respondable/send_data.rb', line 21 def view_data @view_data end |
Instance Method Details
#execute ⇒ Object
30 31 32 |
# File 'lib/aldous/respondable/send_data.rb', line 30 def execute controller.send_data data, end |