Sha256: 3d747193234aeffd56e19d404277c39d8bcca22991e48659a59149111015eb92

Contents?: true

Size: 450 Bytes

Versions: 28

Compression:

Stored size: 450 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)
          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

28 entries across 28 versions & 1 rubygems

Version Path
lutaml-model-0.3.9 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.3.8 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.3.7 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.3.6 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.3.5 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.3.4 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.3.3 lib/lutaml/model/json_adapter/json_document.rb
lutaml-model-0.3.2 lib/lutaml/model/json_adapter/json_document.rb