Class: Sentiero::Web::Views::EventShowView
- Defined in:
- lib/sentiero/web/views/event_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
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Attributes inherited from BaseView
Instance Method Summary collapse
-
#initialize(event:) ⇒ EventShowView
constructor
A new instance of EventShowView.
- #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(event:) ⇒ EventShowView
Returns a new instance of EventShowView.
9 10 11 12 |
# File 'lib/sentiero/web/views/event_show_view.rb', line 9 def initialize(event:) super() @event = event end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
14 15 16 |
# File 'lib/sentiero/web/views/event_show_view.rb', line 14 def event @event end |
Instance Method Details
#template ⇒ Object
16 |
# File 'lib/sentiero/web/views/event_show_view.rb', line 16 def template = "event_show.html.erb" |