Class: TeBot::Message::Text
- Inherits:
-
Object
- Object
- TeBot::Message::Text
- Defined in:
- lib/te_bot/message.rb
Instance Method Summary collapse
-
#initialize(message) ⇒ Text
constructor
A new instance of Text.
- #parse ⇒ Object
Constructor Details
#initialize(message) ⇒ Text
Returns a new instance of Text.
115 116 117 |
# File 'lib/te_bot/message.rb', line 115 def initialize() @text = .dig("text") end |
Instance Method Details
#parse ⇒ Object
119 120 121 |
# File 'lib/te_bot/message.rb', line 119 def parse @text end |