Class: Aldous::Respondable::Headable::HeadAction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller, status) ⇒ HeadAction

Returns a new instance of HeadAction.



19
20
21
22
# File 'lib/aldous/respondable/headable.rb', line 19

def initialize(controller, status)
  @controller = controller
  @status = status
end

Instance Attribute Details

#controllerObject (readonly)

Returns the value of attribute controller.



17
18
19
# File 'lib/aldous/respondable/headable.rb', line 17

def controller
  @controller
end

#statusObject (readonly)

Returns the value of attribute status.



17
18
19
# File 'lib/aldous/respondable/headable.rb', line 17

def status
  @status
end

Instance Method Details

#executeObject



24
25
26
# File 'lib/aldous/respondable/headable.rb', line 24

def execute
  controller.head status
end