Class: OEmbed::Fetchers::NetHTTP
- Inherits:
-
Object
- Object
- OEmbed::Fetchers::NetHTTP
- Defined in:
- lib/oembed_links/fetchers/net_http.rb
Instance Method Summary collapse
Instance Method Details
#fetch(url) ⇒ Object
11 12 13 |
# File 'lib/oembed_links/fetchers/net_http.rb', line 11 def fetch(url) Net::HTTP.get(URI.parse(url)) end |
#name ⇒ Object
7 8 9 |
# File 'lib/oembed_links/fetchers/net_http.rb', line 7 def name "NetHTTP" end |