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.
118 119 120 121 122 123 124 125 |
# File 'lib/telegramObjects.rb', line 118 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.
117 118 119 |
# File 'lib/telegramObjects.rb', line 117 def file_id @file_id end |
#file_size ⇒ Object
Returns the value of attribute file_size.
117 118 119 |
# File 'lib/telegramObjects.rb', line 117 def file_size @file_size end |
#height ⇒ Object
Returns the value of attribute height.
117 118 119 |
# File 'lib/telegramObjects.rb', line 117 def height @height end |
#thumb ⇒ Object
Returns the value of attribute thumb.
117 118 119 |
# File 'lib/telegramObjects.rb', line 117 def thumb @thumb end |
#width ⇒ Object
Returns the value of attribute width.
117 118 119 |
# File 'lib/telegramObjects.rb', line 117 def width @width end |