Class: TeBot::Message::Command

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Command

Returns a new instance of Command.



86
87
88
# File 'lib/te_bot/message.rb', line 86

def initialize(message)
  @text = message.dig("text")
end

Instance Method Details

#parseObject



90
91
92
# File 'lib/te_bot/message.rb', line 90

def parse
  command
end