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_priceFloat

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

Returns:

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

#nameString

Returns - name of the recipe.

Returns:

  • (String)
    • name of the recipe

#total_numberInteger

Returns - number of items sold.

Returns:

  • (Integer)
    • number of items sold

#total_priceFloat

Returns - sum of the price of all items sold.

Returns:

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