Class: Aldous::Respondable::SendData
- Defined in:
- lib/aldous/respondable/send_data.rb
Defined Under Namespace
Classes: SendDataAction
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#build_view, #default_status, #initialize, #status, #view_builder
Constructor Details
This class inherits a constructor from Aldous::Respondable::Base
Instance Method Details
#action(controller) ⇒ Object
6 7 8 |
# File 'lib/aldous/respondable/send_data.rb', line 6 def action(controller) SendDataAction.new(data, , controller, view_data) end |
#data ⇒ Object
10 11 12 |
# File 'lib/aldous/respondable/send_data.rb', line 10 def data raise Errors::UserError.new("SendData objects must define a 'data' method") end |
#options ⇒ Object
14 15 16 |
# File 'lib/aldous/respondable/send_data.rb', line 14 def raise Errors::UserError.new("SendData objects must define an 'options' method") end |