Module: Nicos::Extractor
- Defined in:
- lib/classes/converter.rb
Class Method Summary collapse
Class Method Details
.itemId(str) ⇒ Object
44 45 46 47 |
# File 'lib/classes/converter.rb', line 44 def itemId(str) /(watch\/)([0-9]{1,})/ =~ str $2.to_i end |
.mylistId(str) ⇒ Object
38 39 40 41 |
# File 'lib/classes/converter.rb', line 38 def mylistId(str) /(mylist\/)([0-9]{1,})/ =~ str $2.to_i end |
.videoId(str) ⇒ Object
50 51 52 53 |
# File 'lib/classes/converter.rb', line 50 def videoId(str) /(http:\/\/www.nicovideo.jp\/watch\/)((sm|nm)[0-9]{1,})/ =~ str $2 end |