Class: Carnival::Renderer::Html

Inherits:
Object
  • Object
show all
Defined in:
app/services/carnival/renderer/html.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#presenterObject

Returns the value of attribute presenter.



4
5
6
# File 'app/services/carnival/renderer/html.rb', line 4

def presenter
  @presenter
end

#query_formObject

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_serviceObject

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