class OembedProxy::Embedly
Embedly
provider
Constants
- EMBEDLY_URL
Public Class Methods
new(embedly_key)
click to toggle source
# File lib/oembed_proxy/embedly.rb, line 11 def initialize(embedly_key) # Import the expected embed.ly providers. @pattern_hash = {} @embedly_key = embedly_key File.open(File.expand_path('../providers/embedly_patterns.def', __dir__), 'r') do |f| f.each do |line| regex = Utility.clean_pattern(line) @pattern_hash[regex] = EMBEDLY_URL end end end
Public Instance Methods
get_data(url, other_params = {})
click to toggle source
Calls superclass method
# File lib/oembed_proxy/embedly.rb, line 24 def get_data(url, other_params = {}) other_params[:key] = @embedly_key super end