Class: Jarvis::Interpreter

Inherits:
Object
  • Object
show all
Defined in:
lib/jarvis/interpreter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(slack_message) ⇒ Interpreter

Returns a new instance of Interpreter.



4
5
6
7
# File 'lib/jarvis/interpreter.rb', line 4

def initialize(slack_message)
  @slack_message = slack_message
  @text = slack_message.text
end

Instance Attribute Details

#slack_messageObject

Returns the value of attribute slack_message.



3
4
5
# File 'lib/jarvis/interpreter.rb', line 3

def slack_message
  @slack_message
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/jarvis/interpreter.rb', line 3

def text
  @text
end