Class: Telegram::Bot::Types::Animation
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Animation
- Defined in:
- lib/telegram/bot/types/animation.rb
Instance Attribute Summary collapse
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Animation
constructor
A new instance of Animation.
Constructor Details
#initialize(attributes) ⇒ Animation
Returns a new instance of Animation.
9 10 11 |
# File 'lib/telegram/bot/types/animation.rb', line 9 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/animation.rb', line 3 def file_id @file_id end |
#file_name ⇒ Object
Returns the value of attribute file_name.
3 4 5 |
# File 'lib/telegram/bot/types/animation.rb', line 3 def file_name @file_name end |
#file_size ⇒ Object
Returns the value of attribute file_size.
3 4 5 |
# File 'lib/telegram/bot/types/animation.rb', line 3 def file_size @file_size end |
#mime_type ⇒ Object
Returns the value of attribute mime_type.
3 4 5 |
# File 'lib/telegram/bot/types/animation.rb', line 3 def mime_type @mime_type end |
#thumb ⇒ Object
Returns the value of attribute thumb.
3 4 5 |
# File 'lib/telegram/bot/types/animation.rb', line 3 def thumb @thumb end |