Class: RightScraper::Resources::Workflow

Inherits:
Base
  • Object
show all
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

Methods inherited from Base

#initialize, #resource_hash

Constructor Details

This class inherits a constructor from RightScraper::Resources::Base

Instance Method Details

#definition_pathObject

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_pathObject

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