Class: RoadForest::SourceRigor::Engine

Inherits:
Object
  • Object
show all
Defined in:
lib/roadforest/source-rigor/engine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEngine

Returns a new instance of Engine.



24
25
26
27
28
# File 'lib/roadforest/source-rigor/engine.rb', line 24

def initialize
  @investigators = []
  @investigation_limit = 3
  @credence_policies = []
end

Instance Attribute Details

#credence_policiesObject

Returns the value of attribute credence_policies.



30
31
32
# File 'lib/roadforest/source-rigor/engine.rb', line 30

def credence_policies
  @credence_policies
end

#graph_transferObject

Returns the value of attribute graph_transfer.



30
31
32
# File 'lib/roadforest/source-rigor/engine.rb', line 30

def graph_transfer
  @graph_transfer
end

#investigation_limitObject

Returns the value of attribute investigation_limit.



30
31
32
# File 'lib/roadforest/source-rigor/engine.rb', line 30

def investigation_limit
  @investigation_limit
end

#investigatorsObject

Returns the value of attribute investigators.



30
31
32
# File 'lib/roadforest/source-rigor/engine.rb', line 30

def investigators
  @investigators
end

Instance Method Details

#investigator_list(*names) ⇒ Object



38
39
40
41
42
# File 'lib/roadforest/source-rigor/engine.rb', line 38

def investigator_list(*names)
  self.investigators = names.map do |name|
    Investigator[name].new
  end
end

#policy_list(*names) ⇒ Object



32
33
34
35
36
# File 'lib/roadforest/source-rigor/engine.rb', line 32

def policy_list(*names)
  self.credence_policies = names.map do |name|
    Credence.policy(name)
  end
end