Class: Gilmour::Request
- Inherits:
-
Object
- Object
- Gilmour::Request
- Defined in:
- lib/gilmour/responder.rb
Overview
The Responder module that provides the request and respond DSL The public methods in this class are available to be called from the body of the handlers directly
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(topic, body) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(topic, body) ⇒ Request
Returns a new instance of Request.
16 17 18 19 |
# File 'lib/gilmour/responder.rb', line 16 def initialize(topic, body) @topic = topic @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
14 15 16 |
# File 'lib/gilmour/responder.rb', line 14 def body @body end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
14 15 16 |
# File 'lib/gilmour/responder.rb', line 14 def topic @topic end |