Class: Sentiero::Web::Views::ErrorsIndexView

Inherits:
BaseView
  • Object
show all
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

Attributes inherited from BaseView

#base_path, #csrf_token

Instance Method Summary collapse

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

#groupsObject (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_nextObject (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_sinceObject (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

#pageObject (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_pageObject (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

#problemsObject (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

#searchObject (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

#siblingObject (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_paramObject (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_byObject (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

#sourceObject (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

#statusObject (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_paramObject (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_truncatedObject (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

#templateObject



33
# File 'lib/sentiero/web/views/errors_index_view.rb', line 33

def template = "errors_index.html.erb"