Class: SoarSmaak::SmaakTrustStore

Inherits:
Object
  • Object
show all
Defined in:
lib/soar_smaak/smaak_trust_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSmaakTrustStore

Returns a new instance of SmaakTrustStore.



7
8
9
10
11
12
13
14
15
16
# File 'lib/soar_smaak/smaak_trust_store.rb', line 7

def initialize
  @errors = []
  @associations = YAML.load_file('config/smaak_trust_store')['associations']

rescue => e
  message = "Could not load SMAAK trust store. Is it YAML?"
  @errors << message
  @errors << e.message
  raise ArgumentError.new(message)
end

Instance Attribute Details

#associationsObject (readonly)

Returns the value of attribute associations.



5
6
7
# File 'lib/soar_smaak/smaak_trust_store.rb', line 5

def associations
  @associations
end