Class: Cognition::Message

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



3
4
5
# File 'lib/cognition/message.rb', line 3

def command
  @command
end

#matchesObject

Returns the value of attribute matches.



4
5
6
# File 'lib/cognition/message.rb', line 4

def matches
  @matches
end

#metadataObject (readonly)

Returns the value of attribute metadata.



3
4
5
# File 'lib/cognition/message.rb', line 3

def 
  
end