Class: ComplianceEngine::DataLoader::Json
- Inherits:
-
File
- Object
- ComplianceEngine::DataLoader
- File
- ComplianceEngine::DataLoader::Json
- Defined in:
- lib/compliance_engine/data_loader/json.rb
Overview
Load compliance engine data from a JSON file
Instance Attribute Summary
Attributes inherited from File
Attributes inherited from ComplianceEngine::DataLoader
Instance Method Summary collapse
-
#parse(content) ⇒ Hash
Parse JSON content into a Hash.
Methods inherited from File
Methods inherited from ComplianceEngine::DataLoader
Constructor Details
This class inherits a constructor from ComplianceEngine::DataLoader::File
Instance Method Details
#parse(content) ⇒ Hash
Parse JSON content into a Hash
14 15 16 |
# File 'lib/compliance_engine/data_loader/json.rb', line 14 def parse(content) JSON.parse(content) end |