Class: TeBot::Message::Document

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Document

Returns a new instance of Document.



135
136
137
# File 'lib/te_bot/message.rb', line 135

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

Instance Method Details

#parseObject



139
140
141
# File 'lib/te_bot/message.rb', line 139

def parse
  @document
end