Class: C2eCore::Drops::WareCategoryDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
/build/app/mailers/c2e_core/drops/ware_category_drop.rb

Instance Method Summary collapse

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

#nameString

Returns - Current name of ware category. E.g.: “PIZZA 1/4 45cm”.

Returns:

  • (String)
    • 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