-
-
Save shankardevy/f70d88bf5a0376b211169156eef736b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Mango.Catalog do | |
alias Mango.Catalog.Product | |
def list_products do | |
product1 = %Product{ name: "Tomato", price: 50, is_seasonal: false } | |
product2 = %Product{ name: "Apple", price: 100, is_seasonal: true } | |
[product1, product2] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment