Sha256: 05a06c04acb82d64f9444080fcfee6349107176f3d2dca5ca59a0fe1c8bfd269
Contents?: true
Size: 279 Bytes
Versions: 2
Compression:
Stored size: 279 Bytes
Contents
class CharactersFetcher include Container::Inject URL = "https://rickandmortyapi.com/api/character" inject :http_client inject :characters_parser, CharactersParser def fetch response = http_client.get(URL) characters_parser.parse(response.body) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ringu-0.1.1.pre.alpha | example/app/fetchers/characters_fetcher.rb |
ringu-0.1.0.pre.alpha | example/app/fetchers/characters_fetcher.rb |