class HostedVideo::Providers::RutubeByIframe

Public Class Methods

can_parse?(url) click to toggle source
# 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

Private Instance Methods

vid_regex() click to toggle source
# File lib/hosted_video/providers/rutube_by_iframe.rb, line 10
def vid_regex
  /rutube\.ru\/video\/embed\/(?<id>\w{32}|\w{7}).*/
end