Class: Telegram::Bot::Types::File
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::File
- Defined in:
- lib/telegram/bot/types/file.rb
Instance Attribute Summary collapse
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(attributes) ⇒ File
Returns a new instance of File.
7 8 9 |
# File 'lib/telegram/bot/types/file.rb', line 7 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#file_id ⇒ Object
Returns the value of attribute file_id.
3 4 5 |
# File 'lib/telegram/bot/types/file.rb', line 3 def file_id @file_id end |
#file_path ⇒ Object
Returns the value of attribute file_path.
3 4 5 |
# File 'lib/telegram/bot/types/file.rb', line 3 def file_path @file_path end |
#file_size ⇒ Object
Returns the value of attribute file_size.
3 4 5 |
# File 'lib/telegram/bot/types/file.rb', line 3 def file_size @file_size end |