Class: C2eCore::Drops::WareCategoryDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/ware_category_drop.rb
Instance Method Summary collapse
-
#initialize(ware_category) ⇒ WareCategoryDrop
constructor
A new instance of WareCategoryDrop.
-
#name ⇒ String
-
Current name of ware category.
-
Constructor Details
#initialize(ware_category) ⇒ WareCategoryDrop
Returns a new instance of WareCategoryDrop.
6 7 8 9 |
# File '/build/app/mailers/c2e_core/drops/ware_category_drop.rb', line 6 def initialize(ware_category) super() @ware_category = ware_category end |
Instance Method Details
#name ⇒ String
Returns - Current name of ware category. E.g.: “PIZZA 1/4 45cm”.
12 13 14 |
# File '/build/app/mailers/c2e_core/drops/ware_category_drop.rb', line 12 def name @ware_category.label.to_s end |