Class: TeBot::Message::Query
- Inherits:
-
Object
- Object
- TeBot::Message::Query
- Defined in:
- lib/te_bot/message.rb
Instance Method Summary collapse
-
#initialize(message) ⇒ Query
constructor
A new instance of Query.
- #parse ⇒ Object
Constructor Details
#initialize(message) ⇒ Query
Returns a new instance of Query.
125 126 127 |
# File 'lib/te_bot/message.rb', line 125 def initialize() @query = .dig("query") || .dig("data") end |
Instance Method Details
#parse ⇒ Object
129 130 131 |
# File 'lib/te_bot/message.rb', line 129 def parse @query end |