Module: Archimate::Export

Defined in:
lib/archimate.rb,
lib/archimate/export/jsonl.rb,
lib/archimate/export/cypher.rb,
lib/archimate/export/n_quads.rb,
lib/archimate/export/graph_ml.rb,
lib/archimate/export/csv_export.rb

Defined Under Namespace

Classes: CSVExport, Cypher, GraphML, Jsonl, JsonlEdge, JsonlNode, NQuads, PropertiesHash, Quad

Class Method Summary collapse

Class Method Details

.clean_json(hash) ⇒ Object



47
48
49
# File 'lib/archimate/export/jsonl.rb', line 47

def self.clean_json(hash)
  JSON.generate(hash.delete_if { |_k, v| v.nil? || (v.is_a?(String) && v.empty?) })
end