Class: C2eCore::Drops::FinancialReportWareCategoryDrop
- Inherits:
-
BaseDrop
- Object
- Liquid::Drop
- BaseDrop
- C2eCore::Drops::FinancialReportWareCategoryDrop
- Includes:
- Helpers::FinancialReportConversions
- Defined in:
- /build/app/mailers/c2e_core/drops/financial_report_ware_category_drop.rb
Instance Method Summary collapse
-
#formated_total_price ⇒ Float
- formated sum of the price of all products in the ware category.
-
#initialize(recipes_data, ware_category_name, financial_report) ⇒ FinancialReportWareCategoryDrop
constructor
A new instance of FinancialReportWareCategoryDrop.
-
#name ⇒ String
- name of the ware category.
-
#recipes ⇒ Array[FinancialReportRecipeDrop]
- array of recipes in the ware category.
-
#total_number ⇒ Integer
- sum of all products in the ware category.
-
#total_price ⇒ Float
- sum of the price of all products in the ware category.
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.
#name ⇒ String
Returns - name of the ware category.
#recipes ⇒ Array[FinancialReportRecipeDrop]
Returns - array of recipes in the ware category.
#total_number ⇒ Integer
Returns - sum of all products in the ware category.
#total_price ⇒ Float
Returns - sum of the price of all products in the ware category.