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.8.11 templates/app/serializers/error_serializer.rb
hephaestus-0.8.10 templates/app/serializers/error_serializer.rb
hephaestus-0.8.9.2 templates/app/serializers/error_serializer.rb
hephaestus-0.8.9.1 templates/app/serializers/error_serializer.rb
hephaestus-0.8.9 templates/app/serializers/error_serializer.rb
hephaestus-0.8.8 templates/app/serializers/error_serializer.rb
hephaestus-0.8.7.5 templates/app/serializers/error_serializer.rb
hephaestus-0.8.7.4 templates/app/serializers/error_serializer.rb
hephaestus-0.8.7.3 templates/app/serializers/error_serializer.rb
hephaestus-0.8.7.2 templates/app/serializers/error_serializer.rb
hephaestus-0.8.7.1 templates/app/serializers/error_serializer.rb
hephaestus-0.8.7 templates/app/serializers/error_serializer.rb
hephaestus-0.8.6 templates/app/serializers/error_serializer.rb
hephaestus-0.8.5 templates/app/serializers/error_serializer.rb
hephaestus-0.8.4.1 templates/app/serializers/error_serializer.rb
hephaestus-0.8.4 templates/app/serializers/error_serializer.rb
hephaestus-0.8.3.4 templates/app/serializers/error_serializer.rb
hephaestus-0.8.3.3 templates/app/serializers/error_serializer.rb
hephaestus-0.8.3.2 templates/app/serializers/error_serializer.rb
hephaestus-0.8.3.1 templates/app/serializers/error_serializer.rb