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 ⇒ 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.
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
#alt ⇒ String (readonly)
Returns the value of attribute alt.
52 53 54 |
# File 'sig/types.rbs', line 52 def alt @alt end |
#attributes ⇒ Hash[String, String] (readonly)
Returns the value of attribute attributes.
56 57 58 |
# File 'sig/types.rbs', line 56 def attributes @attributes end |
#dimensions ⇒ ImageDimensions (readonly)
Returns the value of attribute dimensions.
54 55 56 |
# File 'sig/types.rbs', line 54 def dimensions @dimensions end |
#image_type ⇒ ImageType (readonly)
Returns the value of attribute image_type.
55 56 57 |
# File 'sig/types.rbs', line 55 def image_type @image_type end |
#src ⇒ String (readonly)
Returns the value of attribute src.
51 52 53 |
# File 'sig/types.rbs', line 51 def src @src end |
#title ⇒ String (readonly)
Returns the value of attribute title.
53 54 55 |
# File 'sig/types.rbs', line 53 def title @title end |