Class: NoCms::Seo::Presenters::BasePresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/no_cms/seo/presenters/base_presenter.rb

Instance Method Summary collapse

Instance Method Details

#canonical_url(host) ⇒ Object



11
12
13
# File 'app/presenters/no_cms/seo/presenters/base_presenter.rb', line 11

def canonical_url host
  ""
end

#descriptionObject



7
8
9
# File 'app/presenters/no_cms/seo/presenters/base_presenter.rb', line 7

def description
  I18n.t('no_cms.seo.default_description')
end

#no_follow?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/presenters/no_cms/seo/presenters/base_presenter.rb', line 19

def no_follow?
  false
end

#no_index?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/presenters/no_cms/seo/presenters/base_presenter.rb', line 15

def no_index?
  false
end

#titleObject



3
4
5
# File 'app/presenters/no_cms/seo/presenters/base_presenter.rb', line 3

def title
  I18n.t('no_cms.seo.default_title')
end