rdavid1099 / poke-api-v2

Ruby gem wrapper for https://pokeapi.co/api/v2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor Dependent Unnamed Api Resources Out of Endpoint Objects Constant

rdavid1099 opened this issue · comments

Only NamedApiResource or Common objects should be in the ENDPOINT_OBJECTS constant. Any dependent unnamed resources, ex: PokeApi::EvolutionChain::ChainLink, should be called using .custom_endpoint_object method.

Closed with PR #133