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.



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_idObject

Returns the value of attribute file_id.



113
114
115
# File 'lib/telegramObjects.rb', line 113

def file_id
  @file_id
end

#file_sizeObject

Returns the value of attribute file_size.



113
114
115
# File 'lib/telegramObjects.rb', line 113

def file_size
  @file_size
end

#heightObject

Returns the value of attribute height.



113
114
115
# File 'lib/telegramObjects.rb', line 113

def height
  @height
end

#thumbObject

Returns the value of attribute thumb.



113
114
115
# File 'lib/telegramObjects.rb', line 113

def thumb
  @thumb
end

#widthObject

Returns the value of attribute width.



113
114
115
# File 'lib/telegramObjects.rb', line 113

def width
  @width
end