Class: C2eCore::Drops::FinancialReportPaymentTypeDrop
- Inherits:
-
BaseDrop
- Object
- Liquid::Drop
- BaseDrop
- C2eCore::Drops::FinancialReportPaymentTypeDrop
- Includes:
- Helpers::FinancialReportConversions
- Defined in:
- /build/app/mailers/c2e_core/drops/financial_report_payment_type_drop.rb
Instance Method Summary collapse
-
#formatted_value ⇒ String
-
Total amount for this payment type converted to financial report’s currency and formatted.
-
-
#initialize(financial_report, payment_type, value, orders_count) ⇒ FinancialReportPaymentTypeDrop
constructor
A new instance of FinancialReportPaymentTypeDrop.
-
#orders_count ⇒ Integer
-
Number of orders that have been paid by the current payment type.
-
-
#payment_type ⇒ PaymentTypeDrop?
-
Payment type as drop object, if it is present.
-
-
#value ⇒ Float
-
Total amount for this payment type converted to financial report’s currency.
-
Constructor Details
#initialize(financial_report, payment_type, value, orders_count) ⇒ FinancialReportPaymentTypeDrop
Returns a new instance of FinancialReportPaymentTypeDrop.
Instance Method Details
#formatted_value ⇒ String
Returns - Total amount for this payment type converted to financial report’s currency and formatted. E.g.: "123,45 Kč".
#orders_count ⇒ Integer
Returns - Number of orders that have been paid by the current payment type. E.g.: 42.
#payment_type ⇒ PaymentTypeDrop?
Returns - Payment type as drop object, if it is present.
#value ⇒ Float
Returns - Total amount for this payment type converted to financial report’s currency. E.g.: 78.