Class: PhotoSize

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PhotoSize

Returns a new instance of PhotoSize.



80
81
82
83
84
85
86
# File 'lib/telegramObjects.rb', line 80

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_idObject

Returns the value of attribute file_id.



79
80
81
# File 'lib/telegramObjects.rb', line 79

def file_id
  @file_id
end

#file_sizeObject

Returns the value of attribute file_size.



79
80
81
# File 'lib/telegramObjects.rb', line 79

def file_size
  @file_size
end

#heightObject

Returns the value of attribute height.



79
80
81
# File 'lib/telegramObjects.rb', line 79

def height
  @height
end

#widthObject

Returns the value of attribute width.



79
80
81
# File 'lib/telegramObjects.rb', line 79

def width
  @width
end