Class: Carnival::Renderer::Html
- Inherits:
-
Object
- Object
- Carnival::Renderer::Html
- Defined in:
- app/services/carnival/renderer/html.rb
Instance Attribute Summary collapse
-
#presenter ⇒ Object
Returns the value of attribute presenter.
-
#query_form ⇒ Object
Returns the value of attribute query_form.
-
#query_service ⇒ Object
Returns the value of attribute query_service.
Instance Method Summary collapse
-
#initialize(presenter, params) ⇒ Html
constructor
A new instance of Html.
Constructor Details
#initialize(presenter, params) ⇒ Html
Returns a new instance of Html.
5 6 7 8 9 |
# File 'app/services/carnival/renderer/html.rb', line 5 def initialize presenter, params @presenter = presenter @query_form = Carnival::QueryFormCreator.create(@presenter, params) @query_service = Carnival::QueryService.new(@model, @presenter, @query_form) end |
Instance Attribute Details
#presenter ⇒ Object
Returns the value of attribute presenter.
4 5 6 |
# File 'app/services/carnival/renderer/html.rb', line 4 def presenter @presenter end |
#query_form ⇒ Object
Returns the value of attribute query_form.
4 5 6 |
# File 'app/services/carnival/renderer/html.rb', line 4 def query_form @query_form end |
#query_service ⇒ Object
Returns the value of attribute query_service.
4 5 6 |
# File 'app/services/carnival/renderer/html.rb', line 4 def query_service @query_service end |