Class: HtmlToMarkdown::DocumentMetadata
- Inherits:
-
Object
- Object
- HtmlToMarkdown::DocumentMetadata
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#author ⇒ String?
readonly
Returns the value of attribute author.
-
#base_href ⇒ String?
readonly
Returns the value of attribute base_href.
-
#canonical_url ⇒ String?
readonly
Returns the value of attribute canonical_url.
-
#description ⇒ String?
readonly
Returns the value of attribute description.
-
#keywords ⇒ Array[String]
readonly
Returns the value of attribute keywords.
-
#language ⇒ String?
readonly
Returns the value of attribute language.
-
#meta_tags ⇒ Hash[String, String]
readonly
Returns the value of attribute meta_tags.
-
#open_graph ⇒ Hash[String, String]
readonly
Returns the value of attribute open_graph.
-
#text_direction ⇒ enum_TextDirection?
readonly
Returns the value of attribute text_direction.
-
#title ⇒ String?
readonly
Returns the value of attribute title.
-
#twitter_card ⇒ Hash[String, String]
readonly
Returns the value of attribute twitter_card.
Instance Method Summary collapse
-
#initialize ⇒ DocumentMetadata
constructor
A new instance of DocumentMetadata.
Constructor Details
#initialize ⇒ DocumentMetadata
Returns a new instance of DocumentMetadata.
135 |
# File 'sig/types.rbs', line 135
def initialize: (?title: String, ?description: String, ?keywords: Array[String], ?author: String, ?canonical_url: String, ?base_href: String, ?language: String, ?text_direction: enum_TextDirection, ?open_graph: Hash[String, String], ?twitter_card: Hash[String, String], ?meta_tags: Hash[String, String]) -> void
|
Instance Attribute Details
#author ⇒ String? (readonly)
Returns the value of attribute author.
126 127 128 |
# File 'sig/types.rbs', line 126 def @author end |
#base_href ⇒ String? (readonly)
Returns the value of attribute base_href.
128 129 130 |
# File 'sig/types.rbs', line 128 def base_href @base_href end |
#canonical_url ⇒ String? (readonly)
Returns the value of attribute canonical_url.
127 128 129 |
# File 'sig/types.rbs', line 127 def canonical_url @canonical_url end |
#description ⇒ String? (readonly)
Returns the value of attribute description.
124 125 126 |
# File 'sig/types.rbs', line 124 def description @description end |
#keywords ⇒ Array[String] (readonly)
Returns the value of attribute keywords.
125 126 127 |
# File 'sig/types.rbs', line 125 def keywords @keywords end |
#language ⇒ String? (readonly)
Returns the value of attribute language.
129 130 131 |
# File 'sig/types.rbs', line 129 def language @language end |
#meta_tags ⇒ Hash[String, String] (readonly)
Returns the value of attribute meta_tags.
133 134 135 |
# File 'sig/types.rbs', line 133 def @meta_tags end |
#open_graph ⇒ Hash[String, String] (readonly)
Returns the value of attribute open_graph.
131 132 133 |
# File 'sig/types.rbs', line 131 def open_graph @open_graph end |
#text_direction ⇒ enum_TextDirection? (readonly)
Returns the value of attribute text_direction.
130 131 132 |
# File 'sig/types.rbs', line 130 def text_direction @text_direction end |
#title ⇒ String? (readonly)
Returns the value of attribute title.
123 124 125 |
# File 'sig/types.rbs', line 123 def title @title end |
#twitter_card ⇒ Hash[String, String] (readonly)
Returns the value of attribute twitter_card.
132 133 134 |
# File 'sig/types.rbs', line 132 def twitter_card @twitter_card end |