Class: Gilmour::Request

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



14
15
16
# File 'lib/gilmour/responder.rb', line 14

def body
  @body
end

#topicObject (readonly)

Returns the value of attribute topic.



14
15
16
# File 'lib/gilmour/responder.rb', line 14

def topic
  @topic
end