Class: Aldous::Respondable::SendData::SendDataAction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#controllerObject (readonly)

Returns the value of attribute controller.



21
22
23
# File 'lib/aldous/respondable/send_data.rb', line 21

def controller
  @controller
end

#dataObject (readonly)

Returns the value of attribute data.



21
22
23
# File 'lib/aldous/respondable/send_data.rb', line 21

def data
  @data
end

#optionsObject (readonly)

Returns the value of attribute options.



21
22
23
# File 'lib/aldous/respondable/send_data.rb', line 21

def options
  @options
end

#view_dataObject (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

#executeObject



30
31
32
# File 'lib/aldous/respondable/send_data.rb', line 30

def execute
  controller.send_data data, options
end