Class: SoarSmaak::SmaakTrustStore
- Inherits:
-
Object
- Object
- SoarSmaak::SmaakTrustStore
- Defined in:
- lib/soar_smaak/smaak_trust_store.rb
Instance Attribute Summary collapse
-
#associations ⇒ Object
readonly
Returns the value of attribute associations.
Instance Method Summary collapse
-
#initialize ⇒ SmaakTrustStore
constructor
A new instance of SmaakTrustStore.
Constructor Details
#initialize ⇒ SmaakTrustStore
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 = "Could not load SMAAK trust store. Is it YAML?" @errors << @errors << e. raise ArgumentError.new() end |
Instance Attribute Details
#associations ⇒ Object (readonly)
Returns the value of attribute associations.
5 6 7 |
# File 'lib/soar_smaak/smaak_trust_store.rb', line 5 def associations @associations end |