Class: Aldous::Respondable::Headable::HeadAction
- Inherits:
-
Object
- Object
- Aldous::Respondable::Headable::HeadAction
- Defined in:
- lib/aldous/respondable/headable.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(controller, status) ⇒ HeadAction
constructor
A new instance of HeadAction.
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
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
17 18 19 |
# File 'lib/aldous/respondable/headable.rb', line 17 def controller @controller end |
#status ⇒ Object (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
#execute ⇒ Object
24 25 26 |
# File 'lib/aldous/respondable/headable.rb', line 24 def execute controller.head status end |