Class: HostedVideo::Providers::RutubeByIframe
- Defined in:
- lib/hosted_video/providers/rutube_by_iframe.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Rutube
Methods inherited from Base
#iframe_code, #initialize, #kind, #vid
Constructor Details
This class inherits a constructor from HostedVideo::Providers::Base
Class Method Details
.can_parse?(url) ⇒ Boolean
4 5 6 |
# File 'lib/hosted_video/providers/rutube_by_iframe.rb', line 4 def self.can_parse?(url) url =~ /rutube\.ru\/video\/embed\/(\w{32}|\w{7}).*/ end |