Class: HTMLResponse

Inherits:
Object
  • Object
show all
Defined in:
backend/app/lib/reports/html_response.rb

Overview

a really awesome wrapper to just sent a report’s HTML response Not needed for JasperReports

Instance Method Summary (collapse)

Constructor Details

- (HTMLResponse) initialize(report, params)

Returns a new instance of HTMLResponse



6
7
8
9
10
# File 'backend/app/lib/reports/html_response.rb', line 6

def initialize( report, params)
  @report =report
  @params = params
  @html_report = params[:html_report].call 
end

Instance Method Details

- (Object) generate



12
13
14
# File 'backend/app/lib/reports/html_response.rb', line 12

def generate
  @html_report 
end