Class: BetterSeo::StructuredData::Article
- Inherits:
-
Base
- Object
- Base
- BetterSeo::StructuredData::Article
show all
- Defined in:
- lib/better_seo/structured_data/article.rb
Instance Attribute Summary
Attributes inherited from Base
#properties, #type
Instance Method Summary
collapse
Methods inherited from Base
#get, #set, #to_h, #to_json, #to_script_tag, #valid?, #validate!
Constructor Details
#initialize(**properties) ⇒ Article
Returns a new instance of Article.
6
7
8
|
# File 'lib/better_seo/structured_data/article.rb', line 6
def initialize(**properties)
super("Article", **properties)
end
|
Instance Method Details
#article_section(value) ⇒ Object
50
51
52
|
# File 'lib/better_seo/structured_data/article.rb', line 50
def article_section(value)
set(:articleSection, value)
end
|
#author(value) ⇒ Object
22
23
24
|
# File 'lib/better_seo/structured_data/article.rb', line 22
def author(value)
set(:author, value)
end
|
#date_modified(value) ⇒ Object
34
35
36
|
# File 'lib/better_seo/structured_data/article.rb', line 34
def date_modified(value)
set(:dateModified, value)
end
|
#date_published(value) ⇒ Object
30
31
32
|
# File 'lib/better_seo/structured_data/article.rb', line 30
def date_published(value)
set(:datePublished, value)
end
|
#description(value) ⇒ Object
14
15
16
|
# File 'lib/better_seo/structured_data/article.rb', line 14
def description(value)
set(:description, value)
end
|
#headline(value) ⇒ Object
10
11
12
|
# File 'lib/better_seo/structured_data/article.rb', line 10
def headline(value)
set(:headline, value)
end
|
#image(value) ⇒ Object
18
19
20
|
# File 'lib/better_seo/structured_data/article.rb', line 18
def image(value)
set(:image, value)
end
|
#keywords(value) ⇒ Object
46
47
48
|
# File 'lib/better_seo/structured_data/article.rb', line 46
def keywords(value)
set(:keywords, value)
end
|
#publisher(value) ⇒ Object
26
27
28
|
# File 'lib/better_seo/structured_data/article.rb', line 26
def publisher(value)
set(:publisher, value)
end
|
#url(value) ⇒ Object
38
39
40
|
# File 'lib/better_seo/structured_data/article.rb', line 38
def url(value)
set(:url, value)
end
|
#word_count(value) ⇒ Object
42
43
44
|
# File 'lib/better_seo/structured_data/article.rb', line 42
def word_count(value)
set(:wordCount, value)
end
|