Class: Telegram::Bot::Types::Sticker
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Sticker
- Defined in:
- lib/telegram/bot/types/sticker.rb
Instance Attribute Summary collapse
-
#emoji ⇒ Object
Returns the value of attribute emoji.
-
#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.
-
#mask_position ⇒ Object
Returns the value of attribute mask_position.
-
#set_name ⇒ Object
Returns the value of attribute set_name.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Sticker
constructor
A new instance of Sticker.
Constructor Details
#initialize(attributes) ⇒ Sticker
Returns a new instance of Sticker.
12 13 14 |
# File 'lib/telegram/bot/types/sticker.rb', line 12 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#emoji ⇒ Object
Returns the value of attribute emoji.
3 4 5 |
# File 'lib/telegram/bot/types/sticker.rb', line 3 def emoji @emoji end |
#file_id ⇒ Object
Returns the value of attribute file_id.
3 4 5 |
# File 'lib/telegram/bot/types/sticker.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/sticker.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/sticker.rb', line 3 def height @height end |
#mask_position ⇒ Object
Returns the value of attribute mask_position.
3 4 5 |
# File 'lib/telegram/bot/types/sticker.rb', line 3 def mask_position @mask_position end |
#set_name ⇒ Object
Returns the value of attribute set_name.
3 4 5 |
# File 'lib/telegram/bot/types/sticker.rb', line 3 def set_name @set_name end |
#thumb ⇒ Object
Returns the value of attribute thumb.
3 4 5 |
# File 'lib/telegram/bot/types/sticker.rb', line 3 def thumb @thumb end |
#width ⇒ Object
Returns the value of attribute width.
3 4 5 |
# File 'lib/telegram/bot/types/sticker.rb', line 3 def width @width end |