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.7.2 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.7.1 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.7 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.6 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.5 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.4.1 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.4 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.3.4 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.3.3 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.3.2 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.3.1 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.3 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.2 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.1 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.8.0 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.7.7.2 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.7.7 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.7.6.2 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.7.6.1 app/serializers/hephaestus/error_serializer.rb
hephaestus-0.7.6 app/serializers/hephaestus/error_serializer.rb