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_price ⇒ Float

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

#name ⇒ String

Returns - name of the ware category.

Returns:

  • (String) —
    • name of the ware category

#recipes ⇒ Array[FinancialReportRecipeDrop]

Returns - array of recipes in the ware category.

Returns:

#total_number ⇒ Integer

Returns - sum of all products in the ware category.

Returns:

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

#total_price ⇒ Float

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