Class: OEmbed::Fetchers::RubyTubesday
- Inherits:
-
Object
- Object
- OEmbed::Fetchers::RubyTubesday
- Defined in:
- lib/oembed_links/fetchers/ruby_tubesday.rb
Instance Method Summary collapse
- #fetch(url) ⇒ Object
-
#initialize ⇒ RubyTubesday
constructor
A new instance of RubyTubesday.
- #name ⇒ Object
Constructor Details
#initialize ⇒ RubyTubesday
Returns a new instance of RubyTubesday.
7 8 9 |
# File 'lib/oembed_links/fetchers/ruby_tubesday.rb', line 7 def initialize @client = ::RubyTubesday.new(:verify_ssl => false) end |
Instance Method Details
#fetch(url) ⇒ Object
15 16 17 |
# File 'lib/oembed_links/fetchers/ruby_tubesday.rb', line 15 def fetch(url) @client.get(url) end |
#name ⇒ Object
11 12 13 |
# File 'lib/oembed_links/fetchers/ruby_tubesday.rb', line 11 def name "RubyTubesday" end |