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 ⇒ Object
Float - formated sum of the price of all products in the ware category.
-
#initialize(recipes_data, ware_category, financial_report) ⇒ FinancialReportWareCategoryDrop
constructor
A new instance of FinancialReportWareCategoryDrop.
-
#name ⇒ Object
String - name of the ware category.
-
#total_number ⇒ Object
Integer - sum of all products in the ware category.
-
#total_price ⇒ Object
Float - sum of the price of all products in the ware category.
Constructor Details
#initialize(recipes_data, ware_category, financial_report) ⇒ FinancialReportWareCategoryDrop
Returns a new instance of FinancialReportWareCategoryDrop.
Instance Method Details
#formated_total_price ⇒ Object
Returns Float - formated sum of the price of all products in the ware category.
#name ⇒ Object
Returns String - name of the ware category.
#total_number ⇒ Object
Returns Integer - sum of all products in the ware category.
#total_price ⇒ Object
Returns Float - sum of the price of all products in the ware category.