Sha256: ab2895d81e6240fb1346c5f64afb8002651ac0fd26a81b0e32fc2a37ca5b281b
Contents?: true
Size: 392 Bytes
Versions: 9
Compression:
Stored size: 392 Bytes
Contents
require "json" require_relative "json_document" module Lutaml module Model module JsonAdapter class StandardJsonAdapter < JsonDocument def self.parse(json) attributes = JSON.parse(json, create_additions: false) new(attributes) end def to_json(*args) JSON.generate(@attributes, *args) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems