Class: Sticker

Inherits:
Object
  • Object
show all
Defined in:
lib/telegramObjects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute file_id.



117
118
119
# File 'lib/telegramObjects.rb', line 117

def file_id
  @file_id
end

#file_sizeObject

Returns the value of attribute file_size.



117
118
119
# File 'lib/telegramObjects.rb', line 117

def file_size
  @file_size
end

#heightObject

Returns the value of attribute height.



117
118
119
# File 'lib/telegramObjects.rb', line 117

def height
  @height
end

#thumbObject

Returns the value of attribute thumb.



117
118
119
# File 'lib/telegramObjects.rb', line 117

def thumb
  @thumb
end

#widthObject

Returns the value of attribute width.



117
118
119
# File 'lib/telegramObjects.rb', line 117

def width
  @width
end