Class: C2eCore::Drops::FinancialReportRecipeDrop

Inherits:
BaseDrop
  • Object
show all
Includes:
Helpers::FinancialReportConversions
Defined in:
/build/app/mailers/c2e_core/drops/financial_report_recipe_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(data, financial_report) ⇒ FinancialReportRecipeDrop

Returns a new instance of FinancialReportRecipeDrop.

Instance Method Details

#formated_total_price ⇒ Float

Returns - formated sum of the price of all items sold.

Returns:

  • (Float) —
    • formated sum of the price of all items sold

#name ⇒ String

Returns - name of the recipe.

Returns:

  • (String) —
    • name of the recipe

#total_number ⇒ Integer

Returns - number of items sold.

Returns:

  • (Integer) —
    • number of items sold

#total_price ⇒ Float

Returns - sum of the price of all items sold.

Returns:

  • (Float) —
    • sum of the price of all items sold