Class: Sentiero::Web::Views::ClientErrorShowView
- Defined in:
- lib/sentiero/web/views/client_error_show_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 collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#was_truncated ⇒ Object
readonly
Returns the value of attribute was_truncated.
Attributes inherited from BaseView
Instance Method Summary collapse
- #facet_chips ⇒ Object
-
#initialize(group:, was_truncated:) ⇒ ClientErrorShowView
constructor
A new instance of ClientErrorShowView.
- #template ⇒ Object
Methods inherited from BaseView
#built_asset, compiled_template, #escape_js, #h, #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
#initialize(group:, was_truncated:) ⇒ ClientErrorShowView
Returns a new instance of ClientErrorShowView.
9 10 11 12 13 |
# File 'lib/sentiero/web/views/client_error_show_view.rb', line 9 def initialize(group:, was_truncated:) super() @group = group @was_truncated = was_truncated end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
15 16 17 |
# File 'lib/sentiero/web/views/client_error_show_view.rb', line 15 def group @group end |
#was_truncated ⇒ Object (readonly)
Returns the value of attribute was_truncated.
15 16 17 |
# File 'lib/sentiero/web/views/client_error_show_view.rb', line 15 def was_truncated @was_truncated end |
Instance Method Details
#facet_chips ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/sentiero/web/views/client_error_show_view.rb', line 19 def facet_chips [ ["Browsers", group[:browsers] || {}], ["Devices", group[:devices] || {}], ["Pages", group[:pages] || {}] ] end |
#template ⇒ Object
17 |
# File 'lib/sentiero/web/views/client_error_show_view.rb', line 17 def template = "client_error_show.html.erb" |