Class: C2eCore::Drops::OrderRecipeDrop

Inherits:
BaseDrop
  • Object
show all
Includes:
Helpers::OrderConversions
Defined in:
/build/app/mailers/c2e_core/drops/order_recipe_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(order_recipe, order) ⇒ OrderRecipeDrop

Returns a new instance of OrderRecipeDrop.

Instance Method Details

#childrenArray[OrderRecipeDrop]

Returns - Returns an array of side dish and cover order recipes for order recipe.

Returns:

  • (Array[OrderRecipeDrop])
    • Returns an array of side dish and cover order recipes for order recipe.

#finalized_nameString

Returns - Name of recipe in moment of submitting order. E.g.: “200g Zbojnický steak”.

Returns:

  • (String)
    • Name of recipe in moment of submitting order. E.g.: “200g Zbojnický steak”

#noteString

Returns - Customers note for recipe. If not present, empty string is returned.

Returns:

  • (String)
    • Customers note for recipe. If not present, empty string is returned.

#priceFloat

Returns - Price of current recipe converted into order’s currency. E.g.: 78.

Returns:

  • (Float)
    • Price of current recipe converted into order’s currency. E.g.: 78

#recipeRecipeDrop

Returns - Returns recipe of order recipe as drop object.

Returns:

  • (RecipeDrop)
    • Returns recipe of order recipe as drop object.