Class: Sticker
- Inherits:
-
Object
- Object
- Sticker
- Defined in:
- lib/telegramObjects.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.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(json) ⇒ Sticker
constructor
A new instance of Sticker.
Constructor Details
#initialize(json) ⇒ Sticker
Returns a new instance of Sticker.
114 115 116 117 118 119 120 121 |
# File 'lib/telegramObjects.rb', line 114 def initialize json return if !json @file_id = json["file_id"] @width = json["width"] @height = json["height"] @thumb = PhotoSize.new json["thumb"] @file_size = json["file_size"] end |
Instance Attribute Details
#file_id ⇒ Object
Returns the value of attribute file_id.
113 114 115 |
# File 'lib/telegramObjects.rb', line 113 def file_id @file_id end |
#file_size ⇒ Object
Returns the value of attribute file_size.
113 114 115 |
# File 'lib/telegramObjects.rb', line 113 def file_size @file_size end |
#height ⇒ Object
Returns the value of attribute height.
113 114 115 |
# File 'lib/telegramObjects.rb', line 113 def height @height end |
#thumb ⇒ Object
Returns the value of attribute thumb.
113 114 115 |
# File 'lib/telegramObjects.rb', line 113 def thumb @thumb end |
#width ⇒ Object
Returns the value of attribute width.
113 114 115 |
# File 'lib/telegramObjects.rb', line 113 def width @width end |