Class: HtmlToMarkdown::ImageMetadata
- Inherits:
-
Object
- Object
- HtmlToMarkdown::ImageMetadata
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#alt ⇒ String?
readonly
Returns the value of attribute alt.
-
#attributes ⇒ Hash[String, String]
readonly
Returns the value of attribute attributes.
-
#dimensions ⇒ ImageDimensions?
readonly
Returns the value of attribute dimensions.
-
#image_type ⇒ enum_ImageType
readonly
Returns the value of attribute image_type.
-
#src ⇒ String
readonly
Returns the value of attribute src.
-
#title ⇒ String?
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ ImageMetadata
constructor
A new instance of ImageMetadata.
Constructor Details
#initialize ⇒ ImageMetadata
Returns a new instance of ImageMetadata.
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.
197 198 199 |
# File 'sig/types.rbs', line 197 def alt @alt end |
#attributes ⇒ Hash[String, String] (readonly)
Returns the value of attribute attributes.
201 202 203 |
# File 'sig/types.rbs', line 201 def attributes @attributes end |
#dimensions ⇒ ImageDimensions? (readonly)
Returns the value of attribute dimensions.
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.
200 201 202 |
# File 'sig/types.rbs', line 200 def image_type @image_type end |
#src ⇒ String (readonly)
Returns the value of attribute src.
196 197 198 |
# File 'sig/types.rbs', line 196 def src @src end |
#title ⇒ String? (readonly)
Returns the value of attribute title.
198 199 200 |
# File 'sig/types.rbs', line 198 def title @title end |