Skip to content

Commit

Permalink
Create delegate to show a supply
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmp07 committed Oct 21, 2021
1 parent 90e23a2 commit 05d4194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/inmana.ex
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
defmodule Inmana do
alias Inmana.Restaurants.Create, as: RestaurantCreate
alias Inmana.Supplies.Create, as: SupplyCreate
alias Inmana.Supplies.Get, as: SupplyGet

defdelegate create_restaurant(params), to: RestaurantCreate, as: :call

defdelegate create_supply(params), to: SupplyCreate, as: :call

defdelegate get_supply(params), to: SupplyGet, as: :call
end

0 comments on commit 05d4194

Please sign in to comment.