Class: TeBot::Message::Text

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Text

Returns a new instance of Text.



115
116
117
# File 'lib/te_bot/message.rb', line 115

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

Instance Method Details

#parseObject



119
120
121
# File 'lib/te_bot/message.rb', line 119

def parse
  @text
end