Class: BetterSeo::DSL::OpenGraph::ArticleBuilder
- Inherits:
-
Base
- Object
- Base
- BetterSeo::DSL::OpenGraph::ArticleBuilder
show all
- Defined in:
- lib/better_seo/dsl/open_graph.rb
Overview
Article builder for og:article properties
Instance Attribute Summary
Attributes inherited from Base
#config
Instance Method Summary
collapse
Methods inherited from Base
#build, #evaluate, #get, #initialize, #merge!, #set, #to_h
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class BetterSeo::DSL::Base
Instance Method Details
#author(value = nil) ⇒ Object
79
80
81
|
# File 'lib/better_seo/dsl/open_graph.rb', line 79
def author(value = nil)
value ? set(:author, value) : get(:author)
end
|
#expiration_time(value = nil) ⇒ Object
91
92
93
|
# File 'lib/better_seo/dsl/open_graph.rb', line 91
def expiration_time(value = nil)
value ? set(:expiration_time, value) : get(:expiration_time)
end
|
#modified_time(value = nil) ⇒ Object
87
88
89
|
# File 'lib/better_seo/dsl/open_graph.rb', line 87
def modified_time(value = nil)
value ? set(:modified_time, value) : get(:modified_time)
end
|
#published_time(value = nil) ⇒ Object
83
84
85
|
# File 'lib/better_seo/dsl/open_graph.rb', line 83
def published_time(value = nil)
value ? set(:published_time, value) : get(:published_time)
end
|
#section(value = nil) ⇒ Object
95
96
97
|
# File 'lib/better_seo/dsl/open_graph.rb', line 95
def section(value = nil)
value ? set(:section, value) : get(:section)
end
|
#tag(*values) ⇒ Object
99
100
101
|
# File 'lib/better_seo/dsl/open_graph.rb', line 99
def tag(*values)
values.any? ? set(:tag, values.flatten) : get(:tag)
end
|