Class: Rsodx::Serializer

Inherits:
Service show all
Defined in:
lib/rsodx/serializer.rb

Defined Under Namespace

Classes: NotSerializableError

Instance Method Summary collapse

Methods inherited from Service

contract, #halt

Methods included from Delegate

#delegate

Instance Method Details

#callObject



3
4
5
6
7
# File 'lib/rsodx/serializer.rb', line 3

def call
  context.dto = serialize_object
rescue => e
  halt(500, e.message)
end