Class: OEmbed::Fetchers::Curb
- Inherits:
-
Object
- Object
- OEmbed::Fetchers::Curb
- Defined in:
- lib/oembed_links/fetchers/curb.rb
Instance Method Summary collapse
- #fetch(url) ⇒ Object
-
#initialize ⇒ Curb
constructor
A new instance of Curb.
- #name ⇒ Object
Constructor Details
#initialize ⇒ Curb
Returns a new instance of Curb.
7 8 |
# File 'lib/oembed_links/fetchers/curb.rb', line 7 def initialize end |
Instance Method Details
#fetch(url) ⇒ Object
14 15 16 |
# File 'lib/oembed_links/fetchers/curb.rb', line 14 def fetch(url) Curl::Easy.perform(url).body_str end |
#name ⇒ Object
10 11 12 |
# File 'lib/oembed_links/fetchers/curb.rb', line 10 def name "Curb" end |