Class: PhotoSize
- Inherits:
-
Object
- Object
- PhotoSize
- Defined in:
- lib/telegramObjects.rb
Overview
Object Describing a Photo or Sticker
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(json) ⇒ PhotoSize
constructor
A new instance of PhotoSize.
Constructor Details
#initialize(json) ⇒ PhotoSize
84 85 86 87 88 89 90 |
# File 'lib/telegramObjects.rb', line 84 def initialize json return if !json @file_id = json["file_id"] @width = json["width"] @height = json["height"] @file_size = json["file_size"] end |
Instance Attribute Details
#file_id ⇒ Object
Returns the value of attribute file_id.
83 84 85 |
# File 'lib/telegramObjects.rb', line 83 def file_id @file_id end |
#file_size ⇒ Object
Returns the value of attribute file_size.
83 84 85 |
# File 'lib/telegramObjects.rb', line 83 def file_size @file_size end |
#height ⇒ Object
Returns the value of attribute height.
83 84 85 |
# File 'lib/telegramObjects.rb', line 83 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
83 84 85 |
# File 'lib/telegramObjects.rb', line 83 def width @width end |