Class: LlmCostTracker::Dashboard::TagBreakdownResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/llm_cost_tracker/dashboard/tag_breakdown.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#distinct_valuesObject (readonly)

Returns the value of attribute distinct_values

Returns:

  • (Object)

    the current value of distinct_values



12
13
14
# File 'app/services/llm_cost_tracker/dashboard/tag_breakdown.rb', line 12

def distinct_values
  @distinct_values
end

#limitObject (readonly)

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



12
13
14
# File 'app/services/llm_cost_tracker/dashboard/tag_breakdown.rb', line 12

def limit
  @limit
end

#rowsObject (readonly)

Returns the value of attribute rows

Returns:

  • (Object)

    the current value of rows



12
13
14
# File 'app/services/llm_cost_tracker/dashboard/tag_breakdown.rb', line 12

def rows
  @rows
end

#tagged_callsObject (readonly)

Returns the value of attribute tagged_calls

Returns:

  • (Object)

    the current value of tagged_calls



12
13
14
# File 'app/services/llm_cost_tracker/dashboard/tag_breakdown.rb', line 12

def tagged_calls
  @tagged_calls
end

#total_callsObject (readonly)

Returns the value of attribute total_calls

Returns:

  • (Object)

    the current value of total_calls



12
13
14
# File 'app/services/llm_cost_tracker/dashboard/tag_breakdown.rb', line 12

def total_calls
  @total_calls
end

Instance Method Details

#limited?Boolean

Returns:

  • (Boolean)


19
# File 'app/services/llm_cost_tracker/dashboard/tag_breakdown.rb', line 19

def limited? = distinct_values > rows.size