Class: TagStreamPresenter

Inherits:
BasePresenter show all
Defined in:
app/presenters/tag_stream_presenter.rb

Instance Attribute Summary

Attributes inherited from BasePresenter

#current_user

Instance Method Summary collapse

Methods inherited from BasePresenter

as_collection, #initialize, #method_missing, new

Constructor Details

This class inherits a constructor from BasePresenter

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BasePresenter

Instance Method Details

#metas_attributesObject


8
9
10
11
12
13
14
15
16
# File 'app/presenters/tag_stream_presenter.rb', line 8

def metas_attributes
  {
    keywords:       {name:     "keywords",       content: tag_name},
    description:    {name:     "description",    content: description},
    og_url:         {property: "og:url",         content: url},
    og_title:       {property: "og:title",       content: title},
    og_description: {property: "og:description", content: description}
  }
end

#titleObject


4
5
6
# File 'app/presenters/tag_stream_presenter.rb', line 4

def title
  @presentable.display_tag_name
end