Class: Sentiero::Web::Views::ErrorsIndexView
- Defined in:
- lib/sentiero/web/views/errors_index_view.rb
Overview
Serves both /issues branches; the template switches on #source.
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
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#has_next ⇒ Object
readonly
Returns the value of attribute has_next.
-
#new_since ⇒ Object
readonly
Returns the value of attribute new_since.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#per_page ⇒ Object
readonly
Returns the value of attribute per_page.
-
#problems ⇒ Object
readonly
Returns the value of attribute problems.
-
#search ⇒ Object
readonly
Returns the value of attribute search.
-
#sibling ⇒ Object
readonly
Returns the value of attribute sibling.
-
#since_param ⇒ Object
readonly
Returns the value of attribute since_param.
-
#sort_by ⇒ Object
readonly
Returns the value of attribute sort_by.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#until_param ⇒ Object
readonly
Returns the value of attribute until_param.
-
#was_truncated ⇒ Object
readonly
Returns the value of attribute was_truncated.
Attributes inherited from BaseView
Instance Method Summary collapse
-
#initialize(source:, problems: nil, groups: nil, sibling: nil, status: nil, search: "", sort_by: nil, since_param: nil, until_param: nil, new_since: nil, page: nil, per_page: nil, has_next: nil, was_truncated: false) ⇒ ErrorsIndexView
constructor
A new instance of ErrorsIndexView.
- #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(source:, problems: nil, groups: nil, sibling: nil, status: nil, search: "", sort_by: nil, since_param: nil, until_param: nil, new_since: nil, page: nil, per_page: nil, has_next: nil, was_truncated: false) ⇒ ErrorsIndexView
Returns a new instance of ErrorsIndexView.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 10 def initialize(source:, problems: nil, groups: nil, sibling: nil, status: nil, search: "", sort_by: nil, since_param: nil, until_param: nil, new_since: nil, page: nil, per_page: nil, has_next: nil, was_truncated: false) super() @source = source @problems = problems @groups = groups @sibling = sibling @status = status @search = search @sort_by = sort_by @since_param = since_param @until_param = until_param @new_since = new_since @page = page @per_page = per_page @has_next = has_next @was_truncated = was_truncated end |
Instance Attribute Details
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def groups @groups end |
#has_next ⇒ Object (readonly)
Returns the value of attribute has_next.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def has_next @has_next end |
#new_since ⇒ Object (readonly)
Returns the value of attribute new_since.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def new_since @new_since end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def page @page end |
#per_page ⇒ Object (readonly)
Returns the value of attribute per_page.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def per_page @per_page end |
#problems ⇒ Object (readonly)
Returns the value of attribute problems.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def problems @problems end |
#search ⇒ Object (readonly)
Returns the value of attribute search.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def search @search end |
#sibling ⇒ Object (readonly)
Returns the value of attribute sibling.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def sibling @sibling end |
#since_param ⇒ Object (readonly)
Returns the value of attribute since_param.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def since_param @since_param end |
#sort_by ⇒ Object (readonly)
Returns the value of attribute sort_by.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def sort_by @sort_by end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def source @source end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def status @status end |
#until_param ⇒ Object (readonly)
Returns the value of attribute until_param.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def until_param @until_param end |
#was_truncated ⇒ Object (readonly)
Returns the value of attribute was_truncated.
30 31 32 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 30 def was_truncated @was_truncated end |
Instance Method Details
#template ⇒ Object
33 |
# File 'lib/sentiero/web/views/errors_index_view.rb', line 33 def template = "errors_index.html.erb" |