module Prezzo module Explainable def explain explanation = { total: calculate, } components = compile_components explanation[:components] = components unless components.empty? context = compile_params explanation[:context] = context unless context.empty? transients = compile_transients explanation[:transients] = transients unless transients.empty? explanation end end end