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