Module: ClaudeUsage::UsageHelper

Defined in:
app/helpers/claude_usage/usage_helper.rb

Instance Method Summary collapse

Instance Method Details

#format_currency(amount) ⇒ Object

Format a dollar amount



11
12
13
# File 'app/helpers/claude_usage/usage_helper.rb', line 11

def format_currency(amount)
  ClaudeUsage::Formatters.format_currency(amount)
end

#format_number(number) ⇒ Object

Format a number with comma separators



6
7
8
# File 'app/helpers/claude_usage/usage_helper.rb', line 6

def format_number(number)
  ClaudeUsage::Formatters.format_number(number)
end

#format_percentage(decimal) ⇒ Object

Format a percentage



16
17
18
# File 'app/helpers/claude_usage/usage_helper.rb', line 16

def format_percentage(decimal)
  ClaudeUsage::Formatters.format_percentage(decimal)
end