Sha256: 11811b78ec2b881659922ae075d3a24ef5b585ced1f8288bbb5b79617361ade7

Contents?: true

Size: 474 Bytes

Versions: 6

Compression:

Stored size: 474 Bytes

Contents

module {{namespace_module}}
  module Errors
    class Denormalizer
      include Shogun::Denormalizer
      include Errors

      def initialize(object:)
        @object = object
        @meta = object.meta
        @links = object.links
        @linked = object.linked
      end

      private def document
        @object.map do |object|
          {
            "id" => object.id,
            "context" => object.context
          }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shogun-6.4.2 scaffold/new/project/lib/namespace/errors/denormalizer.rb
shogun-6.4.1 scaffold/new/project/lib/namespace/errors/denormalizer.rb
shogun-6.4.0 scaffold/new/project/lib/namespace/errors/denormalizer.rb
shogun-6.3.0 scaffold/new/project/lib/namespace/errors/denormalizer.rb
shogun-6.2.3 scaffold/new/project/lib/namespace/errors/denormalizer.rb
shogun-6.2.2 scaffold/new/project/lib/namespace/errors/denormalizer.rb