Class: Crawlberg::ImageInfo

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImageInfo

Returns a new instance of ImageInfo.

Parameters:

  • url: (String)
  • alt: (String)
  • width: (Integer)
  • height: (Integer)
  • source: (ImageSource)


266
# File 'sig/types.rbs', line 266

def initialize: (?url: String, ?alt: String, ?width: Integer, ?height: Integer, ?source: ImageSource) -> void

Instance Attribute Details

#altString?

Returns the value of attribute alt.

Returns:

  • (String, nil)


261
262
263
# File 'sig/types.rbs', line 261

def alt
  @alt
end

#heightInteger?

Returns the value of attribute height.

Returns:

  • (Integer, nil)


263
264
265
# File 'sig/types.rbs', line 263

def height
  @height
end

#sourceImageSource?

Returns the value of attribute source.

Returns:



264
265
266
# File 'sig/types.rbs', line 264

def source
  @source
end

#urlString?

Returns the value of attribute url.

Returns:

  • (String, nil)


260
261
262
# File 'sig/types.rbs', line 260

def url
  @url
end

#widthInteger?

Returns the value of attribute width.

Returns:

  • (Integer, nil)


262
263
264
# File 'sig/types.rbs', line 262

def width
  @width
end