Class: HtmlToMarkdown::ImageMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImageMetadata

Returns a new instance of ImageMetadata.

Parameters:

  • src: (String)
  • alt: (String)
  • title: (String)
  • dimensions: (ImageDimensions)
  • image_type: (ImageType)
  • attributes: (Hash[String, String])


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

def initialize: (src: String, ?alt: String, ?title: String, ?dimensions: ImageDimensions, image_type: ImageType, attributes: Hash[String, String]) -> void

Instance Attribute Details

#altString (readonly)

Returns the value of attribute alt.

Returns:

  • (String)


52
53
54
# File 'sig/types.rbs', line 52

def alt
  @alt
end

#attributesHash[String, String] (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String])


56
57
58
# File 'sig/types.rbs', line 56

def attributes
  @attributes
end

#dimensionsImageDimensions (readonly)

Returns the value of attribute dimensions.

Returns:



54
55
56
# File 'sig/types.rbs', line 54

def dimensions
  @dimensions
end

#image_typeImageType (readonly)

Returns the value of attribute image_type.

Returns:



55
56
57
# File 'sig/types.rbs', line 55

def image_type
  @image_type
end

#srcString (readonly)

Returns the value of attribute src.

Returns:

  • (String)


51
52
53
# File 'sig/types.rbs', line 51

def src
  @src
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


53
54
55
# File 'sig/types.rbs', line 53

def title
  @title
end