Class: Sentiero::Web::Views::SegmentsView
- Defined in:
- lib/sentiero/web/views/segments_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
-
#browser_options ⇒ Object
readonly
Returns the value of attribute browser_options.
-
#device_options ⇒ Object
readonly
Returns the value of attribute device_options.
-
#filter_query ⇒ Object
readonly
Returns the value of attribute filter_query.
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
-
#has_next ⇒ Object
readonly
Returns the value of attribute has_next.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#per_page ⇒ Object
readonly
Returns the value of attribute per_page.
-
#sessions ⇒ Object
readonly
Returns the value of attribute sessions.
-
#was_truncated ⇒ Object
readonly
Returns the value of attribute was_truncated.
Attributes inherited from BaseView
Instance Method Summary collapse
-
#initialize(filters:, browser_options:, device_options:, sessions:, page:, per_page:, has_next:, was_truncated:, filter_query:) ⇒ SegmentsView
constructor
A new instance of SegmentsView.
- #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(filters:, browser_options:, device_options:, sessions:, page:, per_page:, has_next:, was_truncated:, filter_query:) ⇒ SegmentsView
Returns a new instance of SegmentsView.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sentiero/web/views/segments_view.rb', line 9 def initialize(filters:, browser_options:, device_options:, sessions:, page:, per_page:, has_next:, was_truncated:, filter_query:) super() @filters = filters @browser_options = @device_options = @sessions = sessions @page = page @per_page = per_page @has_next = has_next @was_truncated = was_truncated @filter_query = filter_query end |
Instance Attribute Details
#browser_options ⇒ Object (readonly)
Returns the value of attribute browser_options.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def @browser_options end |
#device_options ⇒ Object (readonly)
Returns the value of attribute device_options.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def @device_options end |
#filter_query ⇒ Object (readonly)
Returns the value of attribute filter_query.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def filter_query @filter_query end |
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def filters @filters end |
#has_next ⇒ Object (readonly)
Returns the value of attribute has_next.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def has_next @has_next end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def page @page end |
#per_page ⇒ Object (readonly)
Returns the value of attribute per_page.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def per_page @per_page end |
#sessions ⇒ Object (readonly)
Returns the value of attribute sessions.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def sessions @sessions end |
#was_truncated ⇒ Object (readonly)
Returns the value of attribute was_truncated.
22 23 24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 22 def was_truncated @was_truncated end |
Instance Method Details
#template ⇒ Object
24 |
# File 'lib/sentiero/web/views/segments_view.rb', line 24 def template = "segments.html.erb" |