Class: FacetPresenter
- Inherits:
-
Object
- Object
- FacetPresenter
- Includes:
- ActionView::Context, ActionView::Helpers::TagHelper, ActionView::Helpers::UrlHelper
- Defined in:
- lib/facetie/presenters/facet_presenter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#facet ⇒ Object
Returns the value of attribute facet.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#options ⇒ Object
Returns the value of attribute options.
-
#params ⇒ Object
Returns the value of attribute params.
-
#view ⇒ Object
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(view, facet, filter, options = {}) ⇒ FacetPresenter
constructor
A new instance of FacetPresenter.
- #render ⇒ Object
Constructor Details
#initialize(view, facet, filter, options = {}) ⇒ FacetPresenter
Returns a new instance of FacetPresenter.
9 10 11 12 13 14 15 |
# File 'lib/facetie/presenters/facet_presenter.rb', line 9 def initialize view, facet, filter, ={} @view = view @facet = facet @filter = filter @params = view.params.symbolize_keys.reject{|k,v| [:controller, :action].include?(k)} @options = end |
Instance Attribute Details
#facet ⇒ Object
Returns the value of attribute facet.
7 8 9 |
# File 'lib/facetie/presenters/facet_presenter.rb', line 7 def facet @facet end |
#filter ⇒ Object
Returns the value of attribute filter.
7 8 9 |
# File 'lib/facetie/presenters/facet_presenter.rb', line 7 def filter @filter end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/facetie/presenters/facet_presenter.rb', line 7 def @options end |
#params ⇒ Object
Returns the value of attribute params.
7 8 9 |
# File 'lib/facetie/presenters/facet_presenter.rb', line 7 def params @params end |
#view ⇒ Object
Returns the value of attribute view.
7 8 9 |
# File 'lib/facetie/presenters/facet_presenter.rb', line 7 def view @view end |
Instance Method Details
#render ⇒ Object
17 18 19 |
# File 'lib/facetie/presenters/facet_presenter.rb', line 17 def render raise NotImplementedError end |