Module: Thornbed
- Defined in:
- lib/thornbed.rb,
lib/thornbed/errors.rb,
lib/thornbed/version.rb,
lib/thornbed/provider.rb
Defined Under Namespace
Modules: Providers Classes: Error, NotFound, NotValid
Constant Summary collapse
- VERSION =
"0.4.0"
Class Method Summary collapse
Class Method Details
.get(url) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/thornbed.rb', line 10 def self.get(url) begin res = OEmbed::Providers.get(url) res.fields rescue OEmbed::NotFound res = Thornbed::Providers.get(url) end end |