Class: Hephaestus::ErrorSerializer

Inherits:
Object
  • Object
show all
Defined in:
app/serializers/hephaestus/error_serializer.rb

Class Method Summary collapse

Class Method Details

.format(message) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'app/serializers/hephaestus/error_serializer.rb', line 7

def format(message)
  {
    errors: [
      {
        message: message,
      },
    ],
  }.to_json
end