Class: C2eCore::Drops::FinancialReportWareCategoryDrop

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

Instance Method Summary collapse

Constructor Details

#initialize(recipes_data, ware_category_name, financial_report) ⇒ FinancialReportWareCategoryDrop

Returns a new instance of FinancialReportWareCategoryDrop.

Instance Method Details

#formated_total_priceFloat

Returns - formated sum of the price of all products in the ware category.

Returns:

  • (Float)
    • formated sum of the price of all products in the ware category

#nameString

Returns - name of the ware category.

Returns:

  • (String)
    • name of the ware category

#recipesArray[FinancialReportRecipeDrop]

Returns - array of recipes in the ware category.

Returns:

#total_numberInteger

Returns - sum of all products in the ware category.

Returns:

  • (Integer)
    • sum of all products in the ware category

#total_priceFloat

Returns - sum of the price of all products in the ware category.

Returns:

  • (Float)
    • sum of the price of all products in the ware category