Sha256: 50d0c28f618b6f12e28d6e4344fa1cee4077c9e8db84e6b2ec8a9ac69579c731

Contents?: true

Size: 487 Bytes

Versions: 26

Compression:

Stored size: 487 Bytes

Contents

module Eco
  module API
    class Error
      class Handler < Eco::API::UseCases::UseCase
        @types = [:transform]

        def initialize(name, type: :transform, root:, &block)
          super(name, type: type, root: root, &block)
        end

        def root=(value)
          raise "Root should be a Eco::API::Error::Handlers object. Given: #{value}" if !value.is_a?(Eco::API::Error::Handlers)
          @root = value
        end

      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
eco-helpers-1.2.2 lib/eco/api/error/handler.rb
eco-helpers-1.2.1 lib/eco/api/error/handler.rb
eco-helpers-1.1.8 lib/eco/api/error/handler.rb
eco-helpers-1.1.7 lib/eco/api/error/handler.rb
eco-helpers-1.1.6 lib/eco/api/error/handler.rb
eco-helpers-1.1.5 lib/eco/api/error/handler.rb
eco-helpers-1.1.4 lib/eco/api/error/handler.rb
eco-helpers-1.1.3 lib/eco/api/error/handler.rb
eco-helpers-1.1.2 lib/eco/api/error/handler.rb
eco-helpers-1.1.1 lib/eco/api/error/handler.rb
eco-helpers-1.0.14 lib/eco/api/error/handler.rb
eco-helpers-1.0.13 lib/eco/api/error/handler.rb
eco-helpers-1.0.12 lib/eco/api/error/handler.rb
eco-helpers-1.0.11 lib/eco/api/error/handler.rb
eco-helpers-1.0.10 lib/eco/api/error/handler.rb
eco-helpers-1.0.9 lib/eco/api/error/handler.rb
eco-helpers-1.0.8 lib/eco/api/error/handler.rb
eco-helpers-1.0.7 lib/eco/api/error/handler.rb
eco-helpers-1.0.6 lib/eco/api/error/handler.rb
eco-helpers-1.0.5 lib/eco/api/error/handler.rb