Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 874 Bytes

DIAGRAM.md

File metadata and controls

23 lines (18 loc) · 874 Bytes

Objects & Messages Diagram

Interaction diagram that shows how Objects use Messages to communicate with one another.

CLASS           <--          METHOD          --> OUTPUT

Takeaway        <--        show_menu         --> string
Takeaway        <-- take_order({ dish, int}) --> hash
Takeaway        <--       confirm_order      --> float
Takeaway        <--         send_sms         --> text

Menu            <--          dishes          --> hash
Menu            <--           list           --> string
Menu            <--         dish?(dish)      --> boolean
Menu            <--         price(dish)      --> float

Order           <--          dishes          --> hash
Order           <--      add(dish, int)      --> hash
Order           <--           total          --> float

Sms             <--          send_msg        --> text

Back to readme.