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