Class: Xberg::HtmlMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHtmlMetadata

Returns a new instance of HtmlMetadata.

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])
  • headers: (Array[HeaderMetadata])
  • links: (Array[LinkMetadata])
  • images: (Array[ImageMetadataType])
  • structured_data: (Array[StructuredData])


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

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], ?headers: Array[HeaderMetadata], ?links: Array[LinkMetadata], ?images: Array[ImageMetadataType], ?structured_data: Array[StructuredData]) -> void

Instance Attribute Details

#authorString?

Returns the value of attribute author.

Returns:

  • (String, nil)


1430
1431
1432
# File 'sig/types.rbs', line 1430

def author
  @author
end

#base_hrefString?

Returns the value of attribute base_href.

Returns:

  • (String, nil)


1432
1433
1434
# File 'sig/types.rbs', line 1432

def base_href
  @base_href
end

#canonical_urlString?

Returns the value of attribute canonical_url.

Returns:

  • (String, nil)


1431
1432
1433
# File 'sig/types.rbs', line 1431

def canonical_url
  @canonical_url
end

#descriptionString?

Returns the value of attribute description.

Returns:

  • (String, nil)


1428
1429
1430
# File 'sig/types.rbs', line 1428

def description
  @description
end

#headersArray[HeaderMetadata]?

Returns the value of attribute headers.

Returns:



1438
1439
1440
# File 'sig/types.rbs', line 1438

def headers
  @headers
end

#imagesArray[ImageMetadataType]?

Returns the value of attribute images.

Returns:



1440
1441
1442
# File 'sig/types.rbs', line 1440

def images
  @images
end

#keywordsArray[String]?

Returns the value of attribute keywords.

Returns:

  • (Array[String], nil)


1429
1430
1431
# File 'sig/types.rbs', line 1429

def keywords
  @keywords
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


1433
1434
1435
# File 'sig/types.rbs', line 1433

def language
  @language
end

Returns the value of attribute links.

Returns:



1439
1440
1441
# File 'sig/types.rbs', line 1439

def links
  @links
end

#meta_tagsHash[String, String]?

Returns the value of attribute meta_tags.

Returns:

  • (Hash[String, String], nil)


1437
1438
1439
# File 'sig/types.rbs', line 1437

def meta_tags
  @meta_tags
end

#open_graphHash[String, String]?

Returns the value of attribute open_graph.

Returns:

  • (Hash[String, String], nil)


1435
1436
1437
# File 'sig/types.rbs', line 1435

def open_graph
  @open_graph
end

#structured_dataArray[StructuredData]?

Returns the value of attribute structured_data.

Returns:



1441
1442
1443
# File 'sig/types.rbs', line 1441

def structured_data
  @structured_data
end

#text_directionTextDirection?

Returns the value of attribute text_direction.

Returns:



1434
1435
1436
# File 'sig/types.rbs', line 1434

def text_direction
  @text_direction
end

#titleString?

Returns the value of attribute title.

Returns:

  • (String, nil)


1427
1428
1429
# File 'sig/types.rbs', line 1427

def title
  @title
end

#twitter_cardHash[String, String]?

Returns the value of attribute twitter_card.

Returns:

  • (Hash[String, String], nil)


1436
1437
1438
# File 'sig/types.rbs', line 1436

def twitter_card
  @twitter_card
end