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


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

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)


1348
1349
1350
# File 'sig/types.rbs', line 1348

def author
  @author
end

#base_hrefString?

Returns the value of attribute base_href.

Returns:

  • (String, nil)


1350
1351
1352
# File 'sig/types.rbs', line 1350

def base_href
  @base_href
end

#canonical_urlString?

Returns the value of attribute canonical_url.

Returns:

  • (String, nil)


1349
1350
1351
# File 'sig/types.rbs', line 1349

def canonical_url
  @canonical_url
end

#descriptionString?

Returns the value of attribute description.

Returns:

  • (String, nil)


1346
1347
1348
# File 'sig/types.rbs', line 1346

def description
  @description
end

#headersArray[HeaderMetadata]?

Returns the value of attribute headers.

Returns:



1356
1357
1358
# File 'sig/types.rbs', line 1356

def headers
  @headers
end

#imagesArray[ImageMetadataType]?

Returns the value of attribute images.

Returns:



1358
1359
1360
# File 'sig/types.rbs', line 1358

def images
  @images
end

#keywordsArray[String]?

Returns the value of attribute keywords.

Returns:

  • (Array[String], nil)


1347
1348
1349
# File 'sig/types.rbs', line 1347

def keywords
  @keywords
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


1351
1352
1353
# File 'sig/types.rbs', line 1351

def language
  @language
end

Returns the value of attribute links.

Returns:



1357
1358
1359
# File 'sig/types.rbs', line 1357

def links
  @links
end

#meta_tagsHash[String, String]?

Returns the value of attribute meta_tags.

Returns:

  • (Hash[String, String], nil)


1355
1356
1357
# File 'sig/types.rbs', line 1355

def meta_tags
  @meta_tags
end

#open_graphHash[String, String]?

Returns the value of attribute open_graph.

Returns:

  • (Hash[String, String], nil)


1353
1354
1355
# File 'sig/types.rbs', line 1353

def open_graph
  @open_graph
end

#structured_dataArray[StructuredData]?

Returns the value of attribute structured_data.

Returns:



1359
1360
1361
# File 'sig/types.rbs', line 1359

def structured_data
  @structured_data
end

#text_directionTextDirection?

Returns the value of attribute text_direction.

Returns:



1352
1353
1354
# File 'sig/types.rbs', line 1352

def text_direction
  @text_direction
end

#titleString?

Returns the value of attribute title.

Returns:

  • (String, nil)


1345
1346
1347
# File 'sig/types.rbs', line 1345

def title
  @title
end

#twitter_cardHash[String, String]?

Returns the value of attribute twitter_card.

Returns:

  • (Hash[String, String], nil)


1354
1355
1356
# File 'sig/types.rbs', line 1354

def twitter_card
  @twitter_card
end