Class: StackProf::Webnav::Server
- Inherits:
-
NYNY::App
- Object
- NYNY::App
- StackProf::Webnav::Server
- Defined in:
- lib/stackprof-webnav/server.rb
Class Attribute Summary collapse
-
.report_dump_path ⇒ Object
Returns the value of attribute report_dump_path.
-
.report_dump_url ⇒ Object
Returns the value of attribute report_dump_url.
Class Method Summary collapse
Class Attribute Details
.report_dump_path ⇒ Object
Returns the value of attribute report_dump_path.
15 16 17 |
# File 'lib/stackprof-webnav/server.rb', line 15 def report_dump_path @report_dump_path end |
.report_dump_url ⇒ Object
Returns the value of attribute report_dump_url.
15 16 17 |
# File 'lib/stackprof-webnav/server.rb', line 15 def report_dump_url @report_dump_url end |
Class Method Details
.presenter ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/stackprof-webnav/server.rb', line 17 def presenter return @presenter unless @presenter.nil? content = if report_dump_path.nil? Net::HTTP.get(URI.parse(report_dump_url)) else File.open(report_dump_path).read end report = StackProf::Report.new(Marshal.load(content)) @presenter ||= Presenter.new(report) end |