Class: Strum::Json::SerializerClass

Inherits:
Object
  • Object
show all
Includes:
Service
Defined in:
lib/strum/json/serializer_class.rb

Instance Method Summary collapse

Instance Method Details

#auditObject



16
17
18
# File 'lib/strum/json/serializer_class.rb', line 16

def audit
  required(:name)
end

#callObject



10
11
12
13
14
# File 'lib/strum/json/serializer_class.rb', line 10

def call
  output(Kernel.const_get("#{name}Serializer"))
rescue StandardError => e
  add_error(:serializer, e)
end