Class: C2eCore::Drops::CurrencyDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/currency_drop.rb
Instance Method Summary collapse
-
#initialize(currency) ⇒ CurrencyDrop
constructor
A new instance of CurrencyDrop.
-
#symbol ⇒ String
-
Symbol of currency used in order.
-
Constructor Details
#initialize(currency) ⇒ CurrencyDrop
Returns a new instance of CurrencyDrop.
7 8 9 10 |
# File '/build/app/mailers/c2e_core/drops/currency_drop.rb', line 7 def initialize(currency) super() @currency = currency end |
Instance Method Details
#symbol ⇒ String
Returns - Symbol of currency used in order. Localized into template name. E.g.: “Kč” or “CZK”.
13 14 15 |
# File '/build/app/mailers/c2e_core/drops/currency_drop.rb', line 13 def symbol @currency.description end |