Class: C2eCore::Drops::OrderRecipeFlatDrop
- Includes:
- Helpers::OrderConversions
- Defined in:
- /build/app/mailers/c2e_core/drops/order_recipe_flat_drop.rb
Instance Method Summary collapse
-
#cover_price ⇒ Float
- Total price recipe covers converted into order's currency.
-
#covers ⇒ Array[OrderRecipeDrop]
- Returns an array of cover order recipes for order recipe flat.
-
#initialize(order_recipe_flat_hash, order) ⇒ OrderRecipeFlatDrop
constructor
A new instance of OrderRecipeFlatDrop.
-
#note ⇒ String
- Customers note for recipe.
-
#price ⇒ Float
- Unit price of recipe converted into order's currency.
-
#quantity ⇒ Integer
- count of current recipe in order.
-
#recipe ⇒ RecipeDrop
- Returns recipe for order recipe flat as drop object.
-
#side_dishes ⇒ Array[OrderRecipeDrop]
- Returns an array of side dish order recipes for order recipe flat.
-
#total_price ⇒ Float
- Total price of recipe including covers and side dishes converted into order's currency.
Constructor Details
#initialize(order_recipe_flat_hash, order) ⇒ OrderRecipeFlatDrop
Returns a new instance of OrderRecipeFlatDrop.
Instance Method Details
#cover_price ⇒ Float
Returns - Total price recipe covers converted into order's currency. E.g.: 20.
#covers ⇒ Array[OrderRecipeDrop]
Returns - Returns an array of cover order recipes for order recipe flat.
#note ⇒ String
Returns - Customers note for recipe. If not present, empty string is returned.
#price ⇒ Float
Returns - Unit price of recipe converted into order's currency. E.g.: 78.
#quantity ⇒ Integer
Returns - count of current recipe in order. E.g.: 2.
#recipe ⇒ RecipeDrop
Returns - Returns recipe for order recipe flat as drop object.
#side_dishes ⇒ Array[OrderRecipeDrop]
Returns - Returns an array of side dish order recipes for order recipe flat.
#total_price ⇒ Float
Returns - Total price of recipe including covers and side dishes converted into order's currency. E.g.: 130.