Module: LlmCostTracker::Dashboard::SetupState

Defined in:
app/services/llm_cost_tracker/dashboard/setup_state.rb

Defined Under Namespace

Classes: SetupRequired

Class Method Summary collapse

Class Method Details

.currentObject



9
10
11
12
13
14
15
# File 'app/services/llm_cost_tracker/dashboard/setup_state.rb', line 9

def current
  return if @healthy

  state = compute
  @healthy = state.nil?
  state
end

.reset!Object



17
18
19
# File 'app/services/llm_cost_tracker/dashboard/setup_state.rb', line 17

def reset!
  @healthy = false
end