Sha256: 602fcfcd8a0e2bcacea7c10565f6f039a7ab732d076bc1e1103f449204c8201f
Contents?: true
Size: 431 Bytes
Versions: 4
Compression:
Stored size: 431 Bytes
Contents
# lib/lutaml/model/json_adapter/standard.rb require "json" require_relative "../json_adapter" module Lutaml module Model module JsonAdapter class StandardDocument < Document 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
4 entries across 4 versions & 1 rubygems