Class: OEmbed::Fetchers::RubyTubesday

Inherits:
Object
  • Object
show all
Defined in:
lib/oembed_links/fetchers/ruby_tubesday.rb

Instance Method Summary collapse

Constructor Details

#initializeRubyTubesday

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

#nameObject



11
12
13
# File 'lib/oembed_links/fetchers/ruby_tubesday.rb', line 11

def name
  "RubyTubesday"
end