Class: Cirrocumulus::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/cirrocumulus/agents/message.rb

Overview

Message context. Includes sender, reply-with and conversation-id

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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_withObject (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

#senderObject (readonly)

Returns the value of attribute sender.



57
58
59
# File 'lib/cirrocumulus/agents/message.rb', line 57

def sender
  @sender
end