Class: Legion::Extensions::Conscience::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Conscience::Client
- Includes:
- Runners::Conscience
- Defined in:
- lib/legion/extensions/conscience/client.rb
Instance Attribute Summary collapse
-
#moral_store ⇒ Object
readonly
Returns the value of attribute moral_store.
Instance Method Summary collapse
-
#initialize(moral_store: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Runners::Conscience
#conscience_stats, #moral_dilemmas, #moral_evaluate, #moral_history, #moral_status, #update_moral_outcome
Constructor Details
#initialize(moral_store: nil) ⇒ Client
Returns a new instance of Client.
16 17 18 |
# File 'lib/legion/extensions/conscience/client.rb', line 16 def initialize(moral_store: nil, **) @moral_store = moral_store || Helpers::MoralStore.new end |
Instance Attribute Details
#moral_store ⇒ Object (readonly)
Returns the value of attribute moral_store.
14 15 16 |
# File 'lib/legion/extensions/conscience/client.rb', line 14 def moral_store @moral_store end |