Class: Aldous::Respondable::SendData

Inherits:
Base
  • Object
show all
Defined in:
lib/aldous/respondable/send_data.rb

Defined Under Namespace

Classes: SendDataAction

Instance Attribute Summary

Attributes inherited from Base

#view_context, #view_data

Instance Method Summary collapse

Methods inherited from Base

#build_view, #default_status, #initialize, #status

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, options, controller, view_data)
end

#dataObject

Raises:



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

#optionsObject

Raises:



14
15
16
# File 'lib/aldous/respondable/send_data.rb', line 14

def options
  raise Errors::UserError.new("SendData objects must define an 'options' method")
end