Class: RightScraper::Resources::Workflow
- Defined in:
- lib/right_scraper/resources/workflow.rb
Constant Summary collapse
- METADATA_EXT =
'.meta'
- DEFINITION_EXT =
'.def'
Instance Attribute Summary
Attributes inherited from Base
#manifest, #metadata, #pos, #repository
Instance Method Summary collapse
-
#definition_path ⇒ Object
- Relative path to definition file === Return path(String)
-
Path to definition file.
-
#metadata_path ⇒ Object
- Relative path to metadata file === Return path(String)
-
Path to metadata file.
Methods inherited from Base
Constructor Details
This class inherits a constructor from RightScraper::Resources::Base
Instance Method Details
#definition_path ⇒ Object
Relative path to definition file
Return
- path(String)
-
Path to definition file
38 39 40 |
# File 'lib/right_scraper/resources/workflow.rb', line 38 def definition_path path = @pos end |
#metadata_path ⇒ Object
Relative path to metadata file
Return
- path(String)
-
Path to metadata file
47 48 49 |
# File 'lib/right_scraper/resources/workflow.rb', line 47 def path = @pos.chomp(File.extname(@pos)) + METADATA_EXT if @pos end |