SOA-NullSpace / meal-decoder-api

0 stars 0 forks source link

Move parsing to mappers? #14

Closed soumyaray closed 3 days ago

soumyaray commented 3 days ago

https://github.com/SOA-NullSpace/meal-decoder-api/blob/b14a8e023bcea2e178b535e4b7287281a8b53670/app/domain/entities/ingredient.rb#L18

Hey folks, in your Ingredient entity, the parsing logic seems more appropriate for a mapper than an entity. Let me know if you feel otherwise?