Class: C2eCore::Drops::OrderRecipeFlatDrop

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

Instance Method Summary collapse

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.

Returns:

  • (Float) —
    • 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.

Returns:

  • (Array[OrderRecipeDrop]) —
    • 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.

Returns:

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

Returns:

  • (Float) —
    • Unit price of recipe converted into order's currency. E.g.: 78

#quantity ⇒ Integer

Returns - count of current recipe in order. E.g.: 2.

Returns:

  • (Integer) —
    • count of current recipe in order. E.g.: 2

#recipe ⇒ RecipeDrop

Returns - Returns recipe for order recipe flat as drop object.

Returns:

  • (RecipeDrop) —
    • 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.

Returns:

  • (Array[OrderRecipeDrop]) —
    • 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.

Returns:

  • (Float) —
    • Total price of recipe including covers and side dishes converted into order's currency. E.g.: 130