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)


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

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)


270
271
272
# File 'sig/types.rbs', line 270

def alt
  @alt
end

#heightInteger?

Returns the value of attribute height.

Returns:

  • (Integer, nil)


272
273
274
# File 'sig/types.rbs', line 272

def height
  @height
end

#sourceImageSource?

Returns the value of attribute source.

Returns:



273
274
275
# File 'sig/types.rbs', line 273

def source
  @source
end

#urlString?

Returns the value of attribute url.

Returns:

  • (String, nil)


269
270
271
# File 'sig/types.rbs', line 269

def url
  @url
end

#widthInteger?

Returns the value of attribute width.

Returns:

  • (Integer, nil)


271
272
273
# File 'sig/types.rbs', line 271

def width
  @width
end