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_priceObject

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

Returns:

  • Float - formated sum of the price of all items sold

#nameObject

Returns String - name of the recipe.

Returns:

  • String - name of the recipe

#total_numberObject

Returns Integer - number of items sold.

Returns:

  • Integer - number of items sold

#total_priceObject

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

Returns:

  • Float - sum of the price of all items sold