Sha256: 39e64f3c4616c2c8b41acaf9a6a436eace45c38b72214b32cbc95f12db09cb99

Contents?: true

Size: 282 Bytes

Versions: 54

Compression:

Stored size: 282 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Hephaestus
  class ErrorSerializer
    class << self
      def format(message)
        {
          errors: [
            {
              message: message,
            },
          ],
        }.to_json
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
hephaestus-0.8.15.5 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.15.4 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.15.3 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.15.2 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.15.1 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.15 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.14 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.13 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.12.2 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.12.1 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.12 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.11 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.10 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.9.2 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.9.1 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.9 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.8 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.7.5 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.7.4 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.7.3 app/serializers/hephaestus/error_serializer.rb