Class: RdfProcessDefinitionLike::ProcessStep

Inherits:
Object
  • Object
show all
Defined in:
lib/rdf_process/RdfProcessDefinitionLike.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ ProcessStep

Returns a new instance of ProcessStep.



49
50
51
52
53
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 49

def initialize( type ) 
	@parameters = {}
	@parameters[:type] = type
	@vrbls = {}
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, arg) ⇒ Object



98
99
100
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 98

def method_missing(method, arg)
	@parameters[method] = arg
end

Instance Attribute Details

#parametersObject

Returns the value of attribute parameters.



47
48
49
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 47

def parameters
  @parameters
end

#typeObject (readonly)

Returns the value of attribute type.



46
47
48
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 46

def type
  @type
end

#vrblsObject (readonly)

Returns the value of attribute vrbls.



46
47
48
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 46

def vrbls
  @vrbls
end

Instance Method Details

#depends_on(*args) ⇒ Object



55
56
57
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 55

def depends_on(*args)
	@parameters[:depends_on] = args
end

#file_vrbl(name, type = nil, value = nil) ⇒ Object



73
74
75
76
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 73

def file_vrbl(name, type=nil, value=nil)
	@parameters[:file_vrbl] = name
	@vrbls[name] = {:type => type, :value => value}
end

#filtr_vrbl(name, value = nil) ⇒ Object



88
89
90
91
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 88

def filtr_vrbl(name, value=nil)
	@parameters[:filtr_vrbl] = name
	@vrbls[name] = {:type => "filtr", :value => value}
end

#input_file_vrbl(name, value = nil) ⇒ Object



78
79
80
81
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 78

def input_file_vrbl(name, value=nil)
	@parameters[:input_file_vrbl] = name
	@vrbls[name] = {:type => "input_file", :value => value}
end

#input_vrbl(name) ⇒ Object



68
69
70
71
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 68

def input_vrbl(name)
	@parameters[:input_vrbl] = name
	@vrbls[name] = {:type => 'graph', :value => nil}
end

#output_file_vrbl(name, value = nil) ⇒ Object



83
84
85
86
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 83

def output_file_vrbl(name, value=nil)
	@parameters[:output_file_vrbl] = name
	@vrbls[name] = {:type => "output_file", :value => value}
end

#output_vrbl(name) ⇒ Object



63
64
65
66
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 63

def output_vrbl(name)
	@parameters[:output_vrbl] = name
	@vrbls[name] = {:type => 'graph', :value => nil}
end

#prefix_vrbl(name, value = nil) ⇒ Object



93
94
95
96
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 93

def prefix_vrbl(name, value=nil)
	@parameters[:prefix_vrbl] = name
	@vrbls[name] = {:type => "prefix", :value => value}
end

#sheets(*args) ⇒ Object



59
60
61
# File 'lib/rdf_process/RdfProcessDefinitionLike.rb', line 59

def sheets(*args)
	@parameters[:sheets] = args
end