Class: Telegram::Bot::Types::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Document

Returns a new instance of Document.



9
10
11
# File 'lib/telegram/bot/types/document.rb', line 9

def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Instance Attribute Details

#file_idObject

Returns the value of attribute file_id.



3
4
5
# File 'lib/telegram/bot/types/document.rb', line 3

def file_id
  @file_id
end

#file_nameObject

Returns the value of attribute file_name.



3
4
5
# File 'lib/telegram/bot/types/document.rb', line 3

def file_name
  @file_name
end

#file_sizeObject

Returns the value of attribute file_size.



3
4
5
# File 'lib/telegram/bot/types/document.rb', line 3

def file_size
  @file_size
end

#mime_typeObject

Returns the value of attribute mime_type.



3
4
5
# File 'lib/telegram/bot/types/document.rb', line 3

def mime_type
  @mime_type
end

#thumbObject

Returns the value of attribute thumb.



3
4
5
# File 'lib/telegram/bot/types/document.rb', line 3

def thumb
  @thumb
end