Open nicholasf opened 10 years ago
The above would work. I don't think it's a particularly good use of Elixir protocols to achieve the desired effect though.
Ideally the correct metadata (module attributes) could be put upon the function in the command itself, so the defimpl could decide how to build the URL ...
This is an explanation of how to write commands for spoonbot that map generic functionality to network specific protocols using Elixir protocols.