Sha256: 25fc78aa95144a38de81b911c828f45fd9060f8e0463725cc2fcab0f5d7007f1

Contents?: true

Size: 234 Bytes

Versions: 63

Compression:

Stored size: 234 Bytes

Contents

# typed: false
# frozen_string_literal: true

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

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
hephaestus-0.7.2.3 templates/app/serializers/error_serializer.rb
hephaestus-0.7.2.2 templates/app/serializers/error_serializer.rb
hephaestus-0.7.2.1 templates/app/serializers/error_serializer.rb
hephaestus-0.7.2 templates/app/serializers/error_serializer.rb
hephaestus-0.7.1 templates/app/serializers/error_serializer.rb
hephaestus-0.7.0 templates/app/serializers/error_serializer.rb
hephaestus-0.6.4 templates/app/serializers/error_serializer.rb
hephaestus-0.6.3 templates/app/serializers/error_serializer.rb
hephaestus-0.6.2 templates/app/serializers/error_serializer.rb
hephaestus-0.6.1 templates/app/serializers/error_serializer.rb
hephaestus-0.6.0 templates/app/serializers/error_serializer.rb
hephaestus-0.5.2 templates/app/serializers/error_serializer.rb
hephaestus-0.5.1 templates/app/serializers/error_serializer.rb
hephaestus-0.5.0 templates/app/serializers/error_serializer.rb
hephaestus-0.4.0 templates/app/serializers/error_serializer.rb
hephaestus-0.3.1 templates/app/serializers/error_serializer.rb
hephaestus-0.2.3 templates/app/serializers/error_serializer.rb
hephaestus-0.2.2 templates/app/serializers/error_serializer.rb
hephaestus-0.1.3 templates/app/serializers/error_serializer.rb
hephaestus-0.1.2 templates/app/serializers/error_serializer.rb