Class: RoadForest::SourceRigor::Engine
- Inherits:
-
Object
- Object
- RoadForest::SourceRigor::Engine
- Defined in:
- lib/roadforest/source-rigor/engine.rb
Instance Attribute Summary collapse
-
#credence_policies ⇒ Object
Returns the value of attribute credence_policies.
-
#graph_transfer ⇒ Object
Returns the value of attribute graph_transfer.
-
#investigation_limit ⇒ Object
Returns the value of attribute investigation_limit.
-
#investigators ⇒ Object
Returns the value of attribute investigators.
Instance Method Summary collapse
-
#initialize ⇒ Engine
constructor
A new instance of Engine.
- #investigator_list(*names) ⇒ Object
- #policy_list(*names) ⇒ Object
Constructor Details
#initialize ⇒ Engine
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_policies ⇒ Object
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_transfer ⇒ Object
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_limit ⇒ Object
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 |
#investigators ⇒ Object
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 |