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)


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

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

Instance Attribute Details

#altString? (readonly)

Returns the value of attribute alt.

Returns:

  • (String, nil)


311
312
313
# File 'sig/types.rbs', line 311

def alt
  @alt
end

#heightInteger? (readonly)

Returns the value of attribute height.

Returns:

  • (Integer, nil)


313
314
315
# File 'sig/types.rbs', line 313

def height
  @height
end

#sourceImageSource (readonly)

Returns the value of attribute source.

Returns:



314
315
316
# File 'sig/types.rbs', line 314

def source
  @source
end

#urlString (readonly)

Returns the value of attribute url.

Returns:

  • (String)


310
311
312
# File 'sig/types.rbs', line 310

def url
  @url
end

#widthInteger? (readonly)

Returns the value of attribute width.

Returns:

  • (Integer, nil)


312
313
314
# File 'sig/types.rbs', line 312

def width
  @width
end