Class: TeBot::Message::Document
- Inherits:
-
Object
- Object
- TeBot::Message::Document
- Defined in:
- lib/te_bot/message.rb
Instance Method Summary collapse
-
#initialize(message) ⇒ Document
constructor
A new instance of Document.
- #parse ⇒ Object
Constructor Details
#initialize(message) ⇒ Document
Returns a new instance of Document.
135 136 137 |
# File 'lib/te_bot/message.rb', line 135 def initialize() @document = .dig("document") end |
Instance Method Details
#parse ⇒ Object
139 140 141 |
# File 'lib/te_bot/message.rb', line 139 def parse @document end |