Class: HtmlToMarkdown::ImageMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ ImageMetadata

Returns a new instance of ImageMetadata.

Parameters:

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


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

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

Instance Attribute Details

#alt ⇒ String? (readonly)

Returns the value of attribute alt.

Returns:

  • (String, nil)


197
198
199
# File 'sig/types.rbs', line 197

def alt
  @alt
end

#attributes ⇒ Hash[String, String] (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String])


201
202
203
# File 'sig/types.rbs', line 201

def attributes
  @attributes
end

#dimensions ⇒ ImageDimensions? (readonly)

Returns the value of attribute dimensions.

Returns:



199
200
201
# File 'sig/types.rbs', line 199

def dimensions
  @dimensions
end

#image_type ⇒ enum_ImageType (readonly)

Returns the value of attribute image_type.

Returns:

  • (enum_ImageType)


200
201
202
# File 'sig/types.rbs', line 200

def image_type
  @image_type
end

#src ⇒ String (readonly)

Returns the value of attribute src.

Returns:

  • (String)


196
197
198
# File 'sig/types.rbs', line 196

def src
  @src
end

#title ⇒ String? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


198
199
200
# File 'sig/types.rbs', line 198

def title
  @title
end