module DrySerialization::Blueprinter

Public Instance Methods

serialized_resource(resource, blueprint, options = {}) click to toggle source
# File lib/dry_serialization/blueprinter.rb, line 4
def serialized_resource(resource, blueprint, options = {})
  JSON.parse(blueprint.render(resource, options), symbolize_names: true)
end