Class: C2eCore::Drops::OrderRecipeDrop
- Includes:
- Helpers::OrderConversions
- Defined in:
- /build/app/mailers/c2e_core/drops/order_recipe_drop.rb
Instance Method Summary collapse
-
#children ⇒ Array[OrderRecipeDrop]
-
Returns an array of side dish and cover order recipes for order recipe.
-
-
#finalized_name ⇒ String
-
Name of recipe in moment of submitting order.
-
-
#initialize(order_recipe, order) ⇒ OrderRecipeDrop
constructor
A new instance of OrderRecipeDrop.
-
#note ⇒ String
-
Customers note for recipe.
-
-
#price ⇒ Float
-
Price of current recipe converted into order’s currency.
-
-
#recipe ⇒ RecipeDrop
-
Returns recipe of order recipe as drop object.
-
Constructor Details
#initialize(order_recipe, order) ⇒ OrderRecipeDrop
Returns a new instance of OrderRecipeDrop.
Instance Method Details
#children ⇒ Array[OrderRecipeDrop]
Returns - Returns an array of side dish and cover order recipes for order recipe.
#finalized_name ⇒ String
Returns - Name of recipe in moment of submitting order. E.g.: “200g Zbojnický steak”.
#note ⇒ String
Returns - Customers note for recipe. If not present, empty string is returned.
#price ⇒ Float
Returns - Price of current recipe converted into order’s currency. E.g.: 78.
#recipe ⇒ RecipeDrop
Returns - Returns recipe of order recipe as drop object.