Class: Legion::Extensions::Conscience::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Conscience
Defined in:
lib/legion/extensions/conscience/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_storeObject (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