Class: Kms::SeoWrapper
- Inherits:
-
Object
- Object
- Kms::SeoWrapper
- Includes:
- Liquor::Dropable
- Defined in:
- lib/kms/seo_wrapper.rb
Instance Method Summary collapse
- #description ⇒ Object
- #h1 ⇒ Object
-
#initialize(seo_context) ⇒ SeoWrapper
constructor
A new instance of SeoWrapper.
- #keywords ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(seo_context) ⇒ SeoWrapper
Returns a new instance of SeoWrapper.
6 7 8 |
# File 'lib/kms/seo_wrapper.rb', line 6 def initialize(seo_context) @seo_context = seo_context end |
Instance Method Details
#description ⇒ Object
20 21 22 23 |
# File 'lib/kms/seo_wrapper.rb', line 20 def description return nil unless @seo_context.respond_to?(:seo_description) @seo_context.seo_description end |
#h1 ⇒ Object
25 26 27 28 |
# File 'lib/kms/seo_wrapper.rb', line 25 def h1 return nil unless @seo_context.respond_to?(:seo_h1) @seo_context.seo_h1 end |
#keywords ⇒ Object
15 16 17 18 |
# File 'lib/kms/seo_wrapper.rb', line 15 def keywords return nil unless @seo_context.respond_to?(:seo_keywords) @seo_context.seo_keywords end |
#title ⇒ Object
10 11 12 13 |
# File 'lib/kms/seo_wrapper.rb', line 10 def title return nil unless @seo_context.respond_to?(:seo_title) @seo_context.seo_title end |