Class: Sentiero::Web::Views::FrustrationView
- Inherits:
-
AnalyzerView
- Object
- BaseView
- AnalyzerView
- Sentiero::Web::Views::FrustrationView
- Defined in:
- lib/sentiero/web/views/frustration_view.rb
Constant Summary
Constants inherited from BaseView
BaseView::TEMPLATES_DIR, BaseView::TEMPLATE_CACHE
Constants included from Escaping
Escaping::HTML_UNSAFE_IN_SCRIPT, Escaping::HTML_UNSAFE_IN_SCRIPT_PATTERN
Instance Attribute Summary
Attributes inherited from AnalyzerView
#pages, #since, #until_str, #was_truncated
Attributes inherited from BaseView
Instance Method Summary collapse
Methods inherited from AnalyzerView
#initialize, #page_report_href
Methods inherited from BaseView
#built_asset, compiled_template, #escape_js, #h, #initialize, #range_pairs, #render, #render_layout, #render_partial, #render_session_row
Methods included from Formatting
#format_duration, #format_vital, #parse_browser, #parse_device
Methods included from Escaping
#escape_html, #escape_js_string, #escape_json
Constructor Details
This class inherits a constructor from Sentiero::Web::Views::AnalyzerView
Instance Method Details
#sorted_pages ⇒ Object
11 |
# File 'lib/sentiero/web/views/frustration_view.rb', line 11 def sorted_pages = pages.sort_by { |url, page| [-(page[:rage_count] + page[:dead_count]), url] } |
#template ⇒ Object
9 |
# File 'lib/sentiero/web/views/frustration_view.rb', line 9 def template = "analytics_frustration.html.erb" |