class Thanos::ComicFinder
Constants
- ATTRIBUTES
Public Instance Methods
find(attribute)
click to toggle source
# File lib/thanos/finders/comic_finder.rb, line 23 def find(attribute) FinderValidator.validate(attribute, ATTRIBUTES) response = Thanos::API::Client.new.get(:comics, attribute) results = Thanos::ResponseHolder.new(response).results Thanos::Factory::Comic.new(results).build end