Sha256: 684a1904d2079e49b99d336580a763e3e31392493bf9329c74f30bf433b2227c

Contents?: true

Size: 465 Bytes

Versions: 6

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

require_relative "json_object"

module Lutaml
  module Model
    module JsonAdapter
      # Base class for JSON documents
      class JsonDocument < JsonObject
        def self.parse(json, _options = {})
          raise NotImplementedError, "Subclasses must implement `parse`."
        end

        def to_json(*args)
          raise NotImplementedError, "Subclasses must implement `to_json`."
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lutaml-model-0.5.3 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.5.2 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.5.1 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.5.0 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.4.0 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.3.30 lib/lutaml/model/json_adapter/json_document.rb