Class: HtmlToMarkdown::DocumentMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocumentMetadata

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: (TextDirection)
  • open_graph: (Hash[String, String])
  • twitter_card: (Hash[String, String])
  • meta_tags: (Hash[String, String])


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

def initialize: (?title: String, ?description: String, ?keywords: Array[String], ?author: String, ?canonical_url: String, ?base_href: String, ?language: String, ?text_direction: TextDirection, ?open_graph: Hash[String, String], ?twitter_card: Hash[String, String], ?meta_tags: Hash[String, String]) -> void

Instance Attribute Details

#authorString?

Returns the value of attribute author.

Returns:

  • (String, nil)


16
17
18
# File 'sig/types.rbs', line 16

def author
  @author
end

#base_hrefString?

Returns the value of attribute base_href.

Returns:

  • (String, nil)


18
19
20
# File 'sig/types.rbs', line 18

def base_href
  @base_href
end

#canonical_urlString?

Returns the value of attribute canonical_url.

Returns:

  • (String, nil)


17
18
19
# File 'sig/types.rbs', line 17

def canonical_url
  @canonical_url
end

#descriptionString?

Returns the value of attribute description.

Returns:

  • (String, nil)


14
15
16
# File 'sig/types.rbs', line 14

def description
  @description
end

#keywordsArray[String]?

Returns the value of attribute keywords.

Returns:

  • (Array[String], nil)


15
16
17
# File 'sig/types.rbs', line 15

def keywords
  @keywords
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


19
20
21
# File 'sig/types.rbs', line 19

def language
  @language
end

#meta_tagsHash[String, String]?

Returns the value of attribute meta_tags.

Returns:

  • (Hash[String, String], nil)


23
24
25
# File 'sig/types.rbs', line 23

def meta_tags
  @meta_tags
end

#open_graphHash[String, String]?

Returns the value of attribute open_graph.

Returns:

  • (Hash[String, String], nil)


21
22
23
# File 'sig/types.rbs', line 21

def open_graph
  @open_graph
end

#text_directionTextDirection?

Returns the value of attribute text_direction.

Returns:



20
21
22
# File 'sig/types.rbs', line 20

def text_direction
  @text_direction
end

#titleString?

Returns the value of attribute title.

Returns:

  • (String, nil)


13
14
15
# File 'sig/types.rbs', line 13

def title
  @title
end

#twitter_cardHash[String, String]?

Returns the value of attribute twitter_card.

Returns:

  • (Hash[String, String], nil)


22
23
24
# File 'sig/types.rbs', line 22

def twitter_card
  @twitter_card
end