Module: LlmCostTracker::Assets

Defined in:
lib/llm_cost_tracker/assets.rb

Constant Summary collapse

ROOT =
File.expand_path("../../app/assets/llm_cost_tracker", __dir__)
STYLESHEET =
"application.css"
STYLESHEET_PATH =
File.join(ROOT, STYLESHEET).freeze
STYLESHEET_FINGERPRINT =
Digest::SHA256.file(STYLESHEET_PATH).hexdigest[0, 12].freeze
STYLESHEET_FILENAME =
"application-#{STYLESHEET_FINGERPRINT}.css".freeze

Class Method Summary collapse

Class Method Details

.rootObject



14
# File 'lib/llm_cost_tracker/assets.rb', line 14

def root = ROOT

.stylesheet_filenameObject



16
# File 'lib/llm_cost_tracker/assets.rb', line 16

def stylesheet_filename = STYLESHEET_FILENAME

.stylesheet_fingerprintObject



15
# File 'lib/llm_cost_tracker/assets.rb', line 15

def stylesheet_fingerprint = STYLESHEET_FINGERPRINT