Class: Trailblazer::Pro::Debugger::Push
- Inherits:
-
Activity::Railway
- Object
- Activity::Railway
- Trailblazer::Pro::Debugger::Push
- Defined in:
- lib/trailblazer/pro/debugger.rb
Instance Method Summary collapse
- #rebuild_session(ctx, session:) ⇒ Object
- #session_initialized?(ctx, session:) ⇒ Boolean
- #session_to_args(ctx, session:) ⇒ Object
Instance Method Details
#rebuild_session(ctx, session:) ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/trailblazer/pro/debugger.rb', line 94 def rebuild_session(ctx, session:, **) session_params = ctx.to_h.slice(*Trace::Signin::SESSION_VARIABLE_NAMES) session = Session.new( **session.to_h, # old data **session_params, # new input ) ctx[:session] = session ctx[:session_updated] = true end |
#session_initialized?(ctx, session:) ⇒ Boolean
90 91 92 |
# File 'lib/trailblazer/pro/debugger.rb', line 90 def session_initialized?(ctx, session:, **) session.is_a?(Session) end |
#session_to_args(ctx, session:) ⇒ Object
106 107 108 |
# File 'lib/trailblazer/pro/debugger.rb', line 106 def session_to_args(ctx, session:, **) session.to_h end |