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: (enum_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])


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

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

Instance Attribute Details

#authorString? (readonly)

Returns the value of attribute author.

Returns:

  • (String, nil)


1229
1230
1231
# File 'sig/types.rbs', line 1229

def author
  @author
end

#base_hrefString? (readonly)

Returns the value of attribute base_href.

Returns:

  • (String, nil)


1231
1232
1233
# File 'sig/types.rbs', line 1231

def base_href
  @base_href
end

#canonical_urlString? (readonly)

Returns the value of attribute canonical_url.

Returns:

  • (String, nil)


1230
1231
1232
# File 'sig/types.rbs', line 1230

def canonical_url
  @canonical_url
end

#descriptionString? (readonly)

Returns the value of attribute description.

Returns:

  • (String, nil)


1227
1228
1229
# File 'sig/types.rbs', line 1227

def description
  @description
end

#headersArray[HeaderMetadata] (readonly)

Returns the value of attribute headers.

Returns:



1237
1238
1239
# File 'sig/types.rbs', line 1237

def headers
  @headers
end

#imagesArray[ImageMetadataType] (readonly)

Returns the value of attribute images.

Returns:



1239
1240
1241
# File 'sig/types.rbs', line 1239

def images
  @images
end

#keywordsArray[String] (readonly)

Returns the value of attribute keywords.

Returns:

  • (Array[String])


1228
1229
1230
# File 'sig/types.rbs', line 1228

def keywords
  @keywords
end

#languageString? (readonly)

Returns the value of attribute language.

Returns:

  • (String, nil)


1232
1233
1234
# File 'sig/types.rbs', line 1232

def language
  @language
end

Returns the value of attribute links.

Returns:



1238
1239
1240
# File 'sig/types.rbs', line 1238

def links
  @links
end

#meta_tagsHash[String, String] (readonly)

Returns the value of attribute meta_tags.

Returns:

  • (Hash[String, String])


1236
1237
1238
# File 'sig/types.rbs', line 1236

def meta_tags
  @meta_tags
end

#open_graphHash[String, String] (readonly)

Returns the value of attribute open_graph.

Returns:

  • (Hash[String, String])


1234
1235
1236
# File 'sig/types.rbs', line 1234

def open_graph
  @open_graph
end

#structured_dataArray[StructuredData] (readonly)

Returns the value of attribute structured_data.

Returns:



1240
1241
1242
# File 'sig/types.rbs', line 1240

def structured_data
  @structured_data
end

#text_directionenum_TextDirection? (readonly)

Returns the value of attribute text_direction.

Returns:

  • (enum_TextDirection, nil)


1233
1234
1235
# File 'sig/types.rbs', line 1233

def text_direction
  @text_direction
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


1226
1227
1228
# File 'sig/types.rbs', line 1226

def title
  @title
end

#twitter_cardHash[String, String] (readonly)

Returns the value of attribute twitter_card.

Returns:

  • (Hash[String, String])


1235
1236
1237
# File 'sig/types.rbs', line 1235

def twitter_card
  @twitter_card
end