Class: InertiaRails::Testing::TestResponse
- Inherits:
-
Object
- Object
- InertiaRails::Testing::TestResponse
- Defined in:
- lib/inertia_rails/testing.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#deferred_props ⇒ Object
readonly
Returns the value of attribute deferred_props.
-
#flash ⇒ Object
readonly
Returns the value of attribute flash.
-
#props ⇒ Object
readonly
Returns the value of attribute props.
-
#view_data ⇒ Object
readonly
Returns the value of attribute view_data.
Instance Method Summary collapse
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
37 38 39 |
# File 'lib/inertia_rails/testing.rb', line 37 def component @component end |
#deferred_props ⇒ Object (readonly)
Returns the value of attribute deferred_props.
37 38 39 |
# File 'lib/inertia_rails/testing.rb', line 37 def deferred_props @deferred_props end |
#flash ⇒ Object (readonly)
Returns the value of attribute flash.
37 38 39 |
# File 'lib/inertia_rails/testing.rb', line 37 def flash @flash end |
#props ⇒ Object (readonly)
Returns the value of attribute props.
37 38 39 |
# File 'lib/inertia_rails/testing.rb', line 37 def props @props end |
#view_data ⇒ Object (readonly)
Returns the value of attribute view_data.
37 38 39 |
# File 'lib/inertia_rails/testing.rb', line 37 def view_data @view_data end |
Instance Method Details
#call(params) ⇒ Object
39 40 41 42 |
# File 'lib/inertia_rails/testing.rb', line 39 def call(params) assign_locals(params) @render_method&.call(params) end |
#wrap_render(render_method) ⇒ Object
44 45 46 47 |
# File 'lib/inertia_rails/testing.rb', line 44 def wrap_render(render_method) @render_method = render_method self end |