Class: HostedVideo::Providers::RutubeByIframe

Inherits:
Rutube
  • Object
show all
Defined in:
lib/hosted_video/providers/rutube_by_iframe.rb

Instance Attribute Summary

Attributes inherited from Base

#url

Class Method Summary collapse

Methods inherited from Rutube

#preview, #url_for_iframe

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

Returns:

  • (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