Module: Trailblazer::Pro
- Defined in:
- lib/trailblazer/pro.rb,
lib/trailblazer/pro/session.rb,
lib/trailblazer/pro/version.rb,
lib/trailblazer/pro/debugger.rb,
lib/trailblazer/pro/trace/wtf.rb,
lib/trailblazer/pro/trace/store.rb,
lib/trailblazer/pro/trace/signin.rb,
lib/trailblazer/pro/call/activity.rb,
lib/trailblazer/pro/operation/WTF.rb,
lib/trailblazer/pro/trace/refresh.rb,
lib/trailblazer/pro/operation/call.rb,
lib/trailblazer/pro/trace/decision.rb
Defined Under Namespace
Modules: Call, DSL, Debugger, Operation, Trace Classes: Session
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
-
.initialize!(api_key:, id_token: nil, render_wtf: true, **options) ⇒ Object
TODO: pass session, e.g.
- .trace_operations!(operation_hash) ⇒ Object
Class Method Details
.initialize!(api_key:, id_token: nil, render_wtf: true, **options) ⇒ Object
TODO:
pass session, e.g. from RAils/tmp
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/trailblazer/pro/session.rb', line 38 def self.initialize!(api_key:, id_token: nil, render_wtf: true, **) Session. = { render_method: Trailblazer::Pro::Debugger, render_wtf: render_wtf, # api_key: api_key, # **options } if id_token Session.session = Trailblazer::Pro::Session.new(api_key: api_key, id_token: id_token, **) else Session.session = Trailblazer::Pro::Session::Uninitialized.new(api_key: api_key, **) end end |
.trace_operations!(operation_hash) ⇒ Object
53 54 55 |
# File 'lib/trailblazer/pro/session.rb', line 53 def self.trace_operations!(operation_hash) Trailblazer::Pro::Session.trace_guards = DSL.trace_operations(operation_hash) end |