Class: Crawlberg::PageMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePageMetadata

Returns a new instance of PageMetadata.

Parameters:

  • title: (String)
  • description: (String)
  • canonical_url: (String)
  • keywords: (String)
  • author: (String)
  • viewport: (String)
  • theme_color: (String)
  • generator: (String)
  • robots: (String)
  • html_lang: (String)
  • html_dir: (String)
  • og_title: (String)
  • og_type: (String)
  • og_image: (String)
  • og_description: (String)
  • og_url: (String)
  • og_site_name: (String)
  • og_locale: (String)
  • og_video: (String)
  • og_audio: (String)
  • og_locale_alternates: (Array[String])
  • twitter_card: (String)
  • twitter_title: (String)
  • twitter_description: (String)
  • twitter_image: (String)
  • twitter_site: (String)
  • twitter_creator: (String)
  • dc_title: (String)
  • dc_creator: (String)
  • dc_subject: (String)
  • dc_description: (String)
  • dc_publisher: (String)
  • dc_date: (String)
  • dc_type: (String)
  • dc_format: (String)
  • dc_identifier: (String)
  • dc_language: (String)
  • dc_rights: (String)
  • article: (ArticleMetadata)
  • hreflangs: (Array[HreflangEntry])
  • favicons: (Array[FaviconInfo])
  • headings: (Array[HeadingInfo])
  • word_count: (Integer)


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

def initialize: (?title: String, ?description: String, ?canonical_url: String, ?keywords: String, ?author: String, ?viewport: String, ?theme_color: String, ?generator: String, ?robots: String, ?html_lang: String, ?html_dir: String, ?og_title: String, ?og_type: String, ?og_image: String, ?og_description: String, ?og_url: String, ?og_site_name: String, ?og_locale: String, ?og_video: String, ?og_audio: String, ?og_locale_alternates: Array[String], ?twitter_card: String, ?twitter_title: String, ?twitter_description: String, ?twitter_image: String, ?twitter_site: String, ?twitter_creator: String, ?dc_title: String, ?dc_creator: String, ?dc_subject: String, ?dc_description: String, ?dc_publisher: String, ?dc_date: String, ?dc_type: String, ?dc_format: String, ?dc_identifier: String, ?dc_language: String, ?dc_rights: String, ?article: ArticleMetadata, ?hreflangs: Array[HreflangEntry], ?favicons: Array[FaviconInfo], ?headings: Array[HeadingInfo], ?word_count: Integer) -> void

Instance Attribute Details

#articleArticleMetadata? (readonly)

Returns the value of attribute article.

Returns:



402
403
404
# File 'sig/types.rbs', line 402

def article
  @article
end

#authorString? (readonly)

Returns the value of attribute author.

Returns:

  • (String, nil)


368
369
370
# File 'sig/types.rbs', line 368

def author
  @author
end

#canonical_urlString? (readonly)

Returns the value of attribute canonical_url.

Returns:

  • (String, nil)


366
367
368
# File 'sig/types.rbs', line 366

def canonical_url
  @canonical_url
end

#dc_creatorString? (readonly)

Returns the value of attribute dc_creator.

Returns:

  • (String, nil)


392
393
394
# File 'sig/types.rbs', line 392

def dc_creator
  @dc_creator
end

#dc_dateString? (readonly)

Returns the value of attribute dc_date.

Returns:

  • (String, nil)


396
397
398
# File 'sig/types.rbs', line 396

def dc_date
  @dc_date
end

#dc_descriptionString? (readonly)

Returns the value of attribute dc_description.

Returns:

  • (String, nil)


394
395
396
# File 'sig/types.rbs', line 394

def dc_description
  @dc_description
end

#dc_formatString? (readonly)

Returns the value of attribute dc_format.

Returns:

  • (String, nil)


398
399
400
# File 'sig/types.rbs', line 398

def dc_format
  @dc_format
end

#dc_identifierString? (readonly)

Returns the value of attribute dc_identifier.

Returns:

  • (String, nil)


399
400
401
# File 'sig/types.rbs', line 399

def dc_identifier
  @dc_identifier
end

#dc_languageString? (readonly)

Returns the value of attribute dc_language.

Returns:

  • (String, nil)


400
401
402
# File 'sig/types.rbs', line 400

def dc_language
  @dc_language
end

#dc_publisherString? (readonly)

Returns the value of attribute dc_publisher.

Returns:

  • (String, nil)


395
396
397
# File 'sig/types.rbs', line 395

def dc_publisher
  @dc_publisher
end

#dc_rightsString? (readonly)

Returns the value of attribute dc_rights.

Returns:

  • (String, nil)


401
402
403
# File 'sig/types.rbs', line 401

def dc_rights
  @dc_rights
end

#dc_subjectString? (readonly)

Returns the value of attribute dc_subject.

Returns:

  • (String, nil)


393
394
395
# File 'sig/types.rbs', line 393

def dc_subject
  @dc_subject
end

#dc_titleString? (readonly)

Returns the value of attribute dc_title.

Returns:

  • (String, nil)


391
392
393
# File 'sig/types.rbs', line 391

def dc_title
  @dc_title
end

#dc_typeString? (readonly)

Returns the value of attribute dc_type.

Returns:

  • (String, nil)


397
398
399
# File 'sig/types.rbs', line 397

def dc_type
  @dc_type
end

#descriptionString? (readonly)

Returns the value of attribute description.

Returns:

  • (String, nil)


365
366
367
# File 'sig/types.rbs', line 365

def description
  @description
end

#faviconsArray[FaviconInfo]? (readonly)

Returns the value of attribute favicons.

Returns:



404
405
406
# File 'sig/types.rbs', line 404

def favicons
  @favicons
end

#generatorString? (readonly)

Returns the value of attribute generator.

Returns:

  • (String, nil)


371
372
373
# File 'sig/types.rbs', line 371

def generator
  @generator
end

#headingsArray[HeadingInfo]? (readonly)

Returns the value of attribute headings.

Returns:



405
406
407
# File 'sig/types.rbs', line 405

def headings
  @headings
end

#hreflangsArray[HreflangEntry]? (readonly)

Returns the value of attribute hreflangs.

Returns:



403
404
405
# File 'sig/types.rbs', line 403

def hreflangs
  @hreflangs
end

#html_dirString? (readonly)

Returns the value of attribute html_dir.

Returns:

  • (String, nil)


374
375
376
# File 'sig/types.rbs', line 374

def html_dir
  @html_dir
end

#html_langString? (readonly)

Returns the value of attribute html_lang.

Returns:

  • (String, nil)


373
374
375
# File 'sig/types.rbs', line 373

def html_lang
  @html_lang
end

#keywordsString? (readonly)

Returns the value of attribute keywords.

Returns:

  • (String, nil)


367
368
369
# File 'sig/types.rbs', line 367

def keywords
  @keywords
end

#og_audioString? (readonly)

Returns the value of attribute og_audio.

Returns:

  • (String, nil)


383
384
385
# File 'sig/types.rbs', line 383

def og_audio
  @og_audio
end

#og_descriptionString? (readonly)

Returns the value of attribute og_description.

Returns:

  • (String, nil)


378
379
380
# File 'sig/types.rbs', line 378

def og_description
  @og_description
end

#og_imageString? (readonly)

Returns the value of attribute og_image.

Returns:

  • (String, nil)


377
378
379
# File 'sig/types.rbs', line 377

def og_image
  @og_image
end

#og_localeString? (readonly)

Returns the value of attribute og_locale.

Returns:

  • (String, nil)


381
382
383
# File 'sig/types.rbs', line 381

def og_locale
  @og_locale
end

#og_locale_alternatesArray[String]? (readonly)

Returns the value of attribute og_locale_alternates.

Returns:

  • (Array[String], nil)


384
385
386
# File 'sig/types.rbs', line 384

def og_locale_alternates
  @og_locale_alternates
end

#og_site_nameString? (readonly)

Returns the value of attribute og_site_name.

Returns:

  • (String, nil)


380
381
382
# File 'sig/types.rbs', line 380

def og_site_name
  @og_site_name
end

#og_titleString? (readonly)

Returns the value of attribute og_title.

Returns:

  • (String, nil)


375
376
377
# File 'sig/types.rbs', line 375

def og_title
  @og_title
end

#og_typeString? (readonly)

Returns the value of attribute og_type.

Returns:

  • (String, nil)


376
377
378
# File 'sig/types.rbs', line 376

def og_type
  @og_type
end

#og_urlString? (readonly)

Returns the value of attribute og_url.

Returns:

  • (String, nil)


379
380
381
# File 'sig/types.rbs', line 379

def og_url
  @og_url
end

#og_videoString? (readonly)

Returns the value of attribute og_video.

Returns:

  • (String, nil)


382
383
384
# File 'sig/types.rbs', line 382

def og_video
  @og_video
end

#robotsString? (readonly)

Returns the value of attribute robots.

Returns:

  • (String, nil)


372
373
374
# File 'sig/types.rbs', line 372

def robots
  @robots
end

#theme_colorString? (readonly)

Returns the value of attribute theme_color.

Returns:

  • (String, nil)


370
371
372
# File 'sig/types.rbs', line 370

def theme_color
  @theme_color
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


364
365
366
# File 'sig/types.rbs', line 364

def title
  @title
end

#twitter_cardString? (readonly)

Returns the value of attribute twitter_card.

Returns:

  • (String, nil)


385
386
387
# File 'sig/types.rbs', line 385

def twitter_card
  @twitter_card
end

#twitter_creatorString? (readonly)

Returns the value of attribute twitter_creator.

Returns:

  • (String, nil)


390
391
392
# File 'sig/types.rbs', line 390

def twitter_creator
  @twitter_creator
end

#twitter_descriptionString? (readonly)

Returns the value of attribute twitter_description.

Returns:

  • (String, nil)


387
388
389
# File 'sig/types.rbs', line 387

def twitter_description
  @twitter_description
end

#twitter_imageString? (readonly)

Returns the value of attribute twitter_image.

Returns:

  • (String, nil)


388
389
390
# File 'sig/types.rbs', line 388

def twitter_image
  @twitter_image
end

#twitter_siteString? (readonly)

Returns the value of attribute twitter_site.

Returns:

  • (String, nil)


389
390
391
# File 'sig/types.rbs', line 389

def twitter_site
  @twitter_site
end

#twitter_titleString? (readonly)

Returns the value of attribute twitter_title.

Returns:

  • (String, nil)


386
387
388
# File 'sig/types.rbs', line 386

def twitter_title
  @twitter_title
end

#viewportString? (readonly)

Returns the value of attribute viewport.

Returns:

  • (String, nil)


369
370
371
# File 'sig/types.rbs', line 369

def viewport
  @viewport
end

#word_countInteger? (readonly)

Returns the value of attribute word_count.

Returns:

  • (Integer, nil)


406
407
408
# File 'sig/types.rbs', line 406

def word_count
  @word_count
end