eldr-rb/eldr-responders

View on GitHub
lib/eldr/responders/serializers/errors.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Eldr
  module Responders
    module Serializers
      class Errors
        attr_accessor :errors
        
        def initialize(errors)
          @errors = errors
        end

        def to_json
          {'errors' => errors.to_hash}.to_json
        end
      end
    end
  end
end