Module: Thornbed::Providers
- Defined in:
- lib/thornbed/provider.rb,
lib/thornbed/providers/9gag.rb,
lib/thornbed/providers/imgur.rb,
lib/thornbed/providers/quickmeme.rb,
lib/thornbed/providers/memecrunch.rb,
lib/thornbed/providers/memegenerator.rb
Defined Under Namespace
Classes: Imgur, Memecrunch, Memegenerator, NineGag, Provider, QuickMeme
Class Method Summary collapse
Class Method Details
.get(url) ⇒ Object
36 37 38 39 40 |
# File 'lib/thornbed/provider.rb', line 36 def self.get(url) provider = Provider.providers.detect { |p| p.new.valid?(url) } raise Thornbed::NotFound, url if provider.nil? provider.new.get(url) end |