Class: FilmSnob::UrlToVideo
- Inherits:
-
Object
- Object
- FilmSnob::UrlToVideo
- Defined in:
- lib/film_snob/url_to_video.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) ⇒ UrlToVideo
constructor
A new instance of UrlToVideo.
- #video ⇒ Object
Constructor Details
#initialize(url, options) ⇒ UrlToVideo
Returns a new instance of UrlToVideo.
9 10 11 12 |
# File 'lib/film_snob/url_to_video.rb', line 9 def initialize(url, ) @url = url @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/film_snob/url_to_video.rb', line 7 def @options end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/film_snob/url_to_video.rb', line 7 def url @url end |
Instance Method Details
#video ⇒ Object
14 15 16 |
# File 'lib/film_snob/url_to_video.rb', line 14 def video site.nil? ? nil : site.new(url, ) end |