Class: FilmSnob::UrlToOembedProvider
- Inherits:
-
Object
- Object
- FilmSnob::UrlToOembedProvider
- Defined in:
- lib/film_snob/url_to_oembed_provider.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, options) ⇒ UrlToOembedProvider
constructor
A new instance of UrlToOembedProvider.
- #media ⇒ Object
Constructor Details
#initialize(url, options) ⇒ UrlToOembedProvider
Returns a new instance of UrlToOembedProvider.
10 11 12 13 |
# File 'lib/film_snob/url_to_oembed_provider.rb', line 10 def initialize(url, ) @url = url @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/film_snob/url_to_oembed_provider.rb', line 8 def @options end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
8 9 10 |
# File 'lib/film_snob/url_to_oembed_provider.rb', line 8 def url @url end |
Instance Method Details
#media ⇒ Object
15 16 17 |
# File 'lib/film_snob/url_to_oembed_provider.rb', line 15 def media site.nil? ? nil : site.new(url, .merge(:matched => true)) end |