Method: Tiun::Auth#serialize

Defined in:
lib/tiun/auth.rb

#serialize(object, context = self.context) ⇒ Object



80
81
82
# File 'lib/tiun/auth.rb', line 80

def serialize object, context = self.context
   object.as_json(context.merge(only: get_properties(object)))
end