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)


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

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?

Returns the value of attribute article.

Returns:



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

def article
  @article
end

#authorString?

Returns the value of attribute author.

Returns:

  • (String, nil)


355
356
357
# File 'sig/types.rbs', line 355

def author
  @author
end

#canonical_urlString?

Returns the value of attribute canonical_url.

Returns:

  • (String, nil)


353
354
355
# File 'sig/types.rbs', line 353

def canonical_url
  @canonical_url
end

#dc_creatorString?

Returns the value of attribute dc_creator.

Returns:

  • (String, nil)


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

def dc_creator
  @dc_creator
end

#dc_dateString?

Returns the value of attribute dc_date.

Returns:

  • (String, nil)


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

def dc_date
  @dc_date
end

#dc_descriptionString?

Returns the value of attribute dc_description.

Returns:

  • (String, nil)


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

def dc_description
  @dc_description
end

#dc_formatString?

Returns the value of attribute dc_format.

Returns:

  • (String, nil)


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

def dc_format
  @dc_format
end

#dc_identifierString?

Returns the value of attribute dc_identifier.

Returns:

  • (String, nil)


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

def dc_identifier
  @dc_identifier
end

#dc_languageString?

Returns the value of attribute dc_language.

Returns:

  • (String, nil)


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

def dc_language
  @dc_language
end

#dc_publisherString?

Returns the value of attribute dc_publisher.

Returns:

  • (String, nil)


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

def dc_publisher
  @dc_publisher
end

#dc_rightsString?

Returns the value of attribute dc_rights.

Returns:

  • (String, nil)


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

def dc_rights
  @dc_rights
end

#dc_subjectString?

Returns the value of attribute dc_subject.

Returns:

  • (String, nil)


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

def dc_subject
  @dc_subject
end

#dc_titleString?

Returns the value of attribute dc_title.

Returns:

  • (String, nil)


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

def dc_title
  @dc_title
end

#dc_typeString?

Returns the value of attribute dc_type.

Returns:

  • (String, nil)


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

def dc_type
  @dc_type
end

#descriptionString?

Returns the value of attribute description.

Returns:

  • (String, nil)


352
353
354
# File 'sig/types.rbs', line 352

def description
  @description
end

#faviconsArray[FaviconInfo]?

Returns the value of attribute favicons.

Returns:



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

def favicons
  @favicons
end

#generatorString?

Returns the value of attribute generator.

Returns:

  • (String, nil)


358
359
360
# File 'sig/types.rbs', line 358

def generator
  @generator
end

#headingsArray[HeadingInfo]?

Returns the value of attribute headings.

Returns:



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

def headings
  @headings
end

#hreflangsArray[HreflangEntry]?

Returns the value of attribute hreflangs.

Returns:



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

def hreflangs
  @hreflangs
end

#html_dirString?

Returns the value of attribute html_dir.

Returns:

  • (String, nil)


361
362
363
# File 'sig/types.rbs', line 361

def html_dir
  @html_dir
end

#html_langString?

Returns the value of attribute html_lang.

Returns:

  • (String, nil)


360
361
362
# File 'sig/types.rbs', line 360

def html_lang
  @html_lang
end

#keywordsString?

Returns the value of attribute keywords.

Returns:

  • (String, nil)


354
355
356
# File 'sig/types.rbs', line 354

def keywords
  @keywords
end

#og_audioString?

Returns the value of attribute og_audio.

Returns:

  • (String, nil)


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

def og_audio
  @og_audio
end

#og_descriptionString?

Returns the value of attribute og_description.

Returns:

  • (String, nil)


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

def og_description
  @og_description
end

#og_imageString?

Returns the value of attribute og_image.

Returns:

  • (String, nil)


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

def og_image
  @og_image
end

#og_localeString?

Returns the value of attribute og_locale.

Returns:

  • (String, nil)


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

def og_locale
  @og_locale
end

#og_locale_alternatesArray[String]?

Returns the value of attribute og_locale_alternates.

Returns:

  • (Array[String], nil)


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

def og_locale_alternates
  @og_locale_alternates
end

#og_site_nameString?

Returns the value of attribute og_site_name.

Returns:

  • (String, nil)


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

def og_site_name
  @og_site_name
end

#og_titleString?

Returns the value of attribute og_title.

Returns:

  • (String, nil)


362
363
364
# File 'sig/types.rbs', line 362

def og_title
  @og_title
end

#og_typeString?

Returns the value of attribute og_type.

Returns:

  • (String, nil)


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

def og_type
  @og_type
end

#og_urlString?

Returns the value of attribute og_url.

Returns:

  • (String, nil)


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

def og_url
  @og_url
end

#og_videoString?

Returns the value of attribute og_video.

Returns:

  • (String, nil)


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

def og_video
  @og_video
end

#robotsString?

Returns the value of attribute robots.

Returns:

  • (String, nil)


359
360
361
# File 'sig/types.rbs', line 359

def robots
  @robots
end

#theme_colorString?

Returns the value of attribute theme_color.

Returns:

  • (String, nil)


357
358
359
# File 'sig/types.rbs', line 357

def theme_color
  @theme_color
end

#titleString?

Returns the value of attribute title.

Returns:

  • (String, nil)


351
352
353
# File 'sig/types.rbs', line 351

def title
  @title
end

#twitter_cardString?

Returns the value of attribute twitter_card.

Returns:

  • (String, nil)


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

def twitter_card
  @twitter_card
end

#twitter_creatorString?

Returns the value of attribute twitter_creator.

Returns:

  • (String, nil)


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

def twitter_creator
  @twitter_creator
end

#twitter_descriptionString?

Returns the value of attribute twitter_description.

Returns:

  • (String, nil)


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

def twitter_description
  @twitter_description
end

#twitter_imageString?

Returns the value of attribute twitter_image.

Returns:

  • (String, nil)


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

def twitter_image
  @twitter_image
end

#twitter_siteString?

Returns the value of attribute twitter_site.

Returns:

  • (String, nil)


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

def twitter_site
  @twitter_site
end

#twitter_titleString?

Returns the value of attribute twitter_title.

Returns:

  • (String, nil)


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

def twitter_title
  @twitter_title
end

#viewportString?

Returns the value of attribute viewport.

Returns:

  • (String, nil)


356
357
358
# File 'sig/types.rbs', line 356

def viewport
  @viewport
end

#word_countInteger?

Returns the value of attribute word_count.

Returns:

  • (Integer, nil)


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

def word_count
  @word_count
end