Class: VixenRename::FileParser::Scene
- Inherits:
-
Object
- Object
- VixenRename::FileParser::Scene
- Defined in:
- lib/vixen_rename/file_parser.rb
Overview
Class to fetch details for a scene using the filename
Instance Method Summary collapse
-
#initialize(net) ⇒ Scene
constructor
A new instance of Scene.
- #process(file) ⇒ Object
Constructor Details
#initialize(net) ⇒ Scene
Returns a new instance of Scene.
33 34 35 |
# File 'lib/vixen_rename/file_parser.rb', line 33 def initialize(net) @net = net end |
Instance Method Details
#process(file) ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lib/vixen_rename/file_parser.rb', line 38 def process(file) @file = file return if match.nil? hash = search(match[:video_id], match[:site]) return filename(hash, File.extname(@file)), hash[:release_date] end |