Class: Slnky::Command::Response
- Inherits:
-
Object
- Object
- Slnky::Command::Response
- Defined in:
- lib/slnky/command/response.rb
Instance Attribute Summary collapse
-
#trace ⇒ Object
readonly
Returns the value of attribute trace.
Instance Method Summary collapse
- #done! ⇒ Object
- #exchange=(exchange) ⇒ Object
-
#initialize(route, service) ⇒ Response
constructor
A new instance of Response.
- #output(message) ⇒ Object
- #start! ⇒ Object
Constructor Details
Instance Attribute Details
#trace ⇒ Object (readonly)
Returns the value of attribute trace.
4 5 6 |
# File 'lib/slnky/command/response.rb', line 4 def trace @trace end |
Instance Method Details
#done! ⇒ Object
31 32 33 |
# File 'lib/slnky/command/response.rb', line 31 def done! pub :complete, "complete" end |
#exchange=(exchange) ⇒ Object
35 36 37 |
# File 'lib/slnky/command/response.rb', line 35 def exchange=(exchange) @exchange = exchange end |
#output(message) ⇒ Object
22 23 24 |
# File 'lib/slnky/command/response.rb', line 22 def output() info() end |
#start! ⇒ Object
26 27 28 29 |
# File 'lib/slnky/command/response.rb', line 26 def start! pub :start, "start" @started = true end |