Class: Cirrocumulus::Context
- Inherits:
-
Object
- Object
- Cirrocumulus::Context
- Defined in:
- lib/cirrocumulus/agents/message.rb
Overview
Message context. Includes sender, reply-with and conversation-id
Instance Attribute Summary collapse
-
#conversation_id ⇒ Object
readonly
Returns the value of attribute conversation_id.
-
#reply_with ⇒ Object
readonly
Returns the value of attribute reply_with.
-
#sender ⇒ Object
readonly
Returns the value of attribute sender.
Instance Method Summary collapse
-
#initialize(sender, reply_with, conversation_id = nil) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(sender, reply_with, conversation_id = nil) ⇒ Context
Returns a new instance of Context.
61 62 63 64 65 |
# File 'lib/cirrocumulus/agents/message.rb', line 61 def initialize(sender, reply_with, conversation_id = nil) @sender = sender @reply_with = reply_with @conversation_id = conversation_id end |
Instance Attribute Details
#conversation_id ⇒ Object (readonly)
Returns the value of attribute conversation_id.
59 60 61 |
# File 'lib/cirrocumulus/agents/message.rb', line 59 def conversation_id @conversation_id end |
#reply_with ⇒ Object (readonly)
Returns the value of attribute reply_with.
58 59 60 |
# File 'lib/cirrocumulus/agents/message.rb', line 58 def reply_with @reply_with end |
#sender ⇒ Object (readonly)
Returns the value of attribute sender.
57 58 59 |
# File 'lib/cirrocumulus/agents/message.rb', line 57 def sender @sender end |