Class: Cognition::Message
- Inherits:
-
Object
- Object
- Cognition::Message
- Defined in:
- lib/cognition/message.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(command, metadata = {}) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(command, metadata = {}) ⇒ Message
Returns a new instance of Message.
6 7 8 9 |
# File 'lib/cognition/message.rb', line 6 def initialize(command, = {}) @command = command = end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
3 4 5 |
# File 'lib/cognition/message.rb', line 3 def command @command end |
#matches ⇒ Object
Returns the value of attribute matches.
4 5 6 |
# File 'lib/cognition/message.rb', line 4 def matches @matches end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/cognition/message.rb', line 3 def end |