module Nicos::Extractor
Public Class Methods
itemId(str)
click to toggle source
# File lib/classes/converter.rb, line 43 def itemId(str) /(watch\/)([0-9]{1,})/ =~ str $2.to_i end
mylistId(str)
click to toggle source
# File lib/classes/converter.rb, line 37 def mylistId(str) /(mylist\/)([0-9]{1,})/ =~ str $2.to_i end
videoId(str)
click to toggle source
# File lib/classes/converter.rb, line 49 def videoId(str) /(http:\/\/www.nicovideo.jp\/watch\/)((sm|nm)[0-9]{1,})/ =~ str $2 end
Private Instance Methods
itemId(str)
click to toggle source
# File lib/classes/converter.rb, line 43 def itemId(str) /(watch\/)([0-9]{1,})/ =~ str $2.to_i end
mylistId(str)
click to toggle source
# File lib/classes/converter.rb, line 37 def mylistId(str) /(mylist\/)([0-9]{1,})/ =~ str $2.to_i end
videoId(str)
click to toggle source
# File lib/classes/converter.rb, line 49 def videoId(str) /(http:\/\/www.nicovideo.jp\/watch\/)((sm|nm)[0-9]{1,})/ =~ str $2 end