Class: HtmlToMarkdown::DocumentMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ DocumentMetadata

Returns a new instance of DocumentMetadata.

Parameters:

  • 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])


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.

Returns:

  • (String, nil)


126
127
128
# File 'sig/types.rbs', line 126

def author
  @author
end

#base_href ⇒ String? (readonly)

Returns the value of attribute base_href.

Returns:

  • (String, nil)


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.

Returns:

  • (String, nil)


127
128
129
# File 'sig/types.rbs', line 127

def canonical_url
  @canonical_url
end

#description ⇒ String? (readonly)

Returns the value of attribute description.

Returns:

  • (String, nil)


124
125
126
# File 'sig/types.rbs', line 124

def description
  @description
end

#keywords ⇒ Array[String] (readonly)

Returns the value of attribute keywords.

Returns:

  • (Array[String])


125
126
127
# File 'sig/types.rbs', line 125

def keywords
  @keywords
end

#language ⇒ String? (readonly)

Returns the value of attribute language.

Returns:

  • (String, nil)


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.

Returns:

  • (Hash[String, String])


133
134
135
# File 'sig/types.rbs', line 133

def meta_tags
  @meta_tags
end

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

Returns the value of attribute open_graph.

Returns:

  • (Hash[String, String])


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.

Returns:

  • (enum_TextDirection, nil)


130
131
132
# File 'sig/types.rbs', line 130

def text_direction
  @text_direction
end

#title ⇒ String? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


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.

Returns:

  • (Hash[String, String])


132
133
134
# File 'sig/types.rbs', line 132

def twitter_card
  @twitter_card
end