Sha256: 999d55c74517b91813a81c35b079d3214290866e0ce94b387cab0c702c0a530b

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

class KeyVortex
  class Adapter
    def initialize
      @limitations = {}
    end

    def limitation_for(field)
      @limitations[field.limitation.type]
    end

    def register_limitation(limitation)
      @limitations[limitation.type] = limitation
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
key-vortex-0.2.2 lib/key_vortex/adapter.rb
key-vortex-0.2.1 lib/key_vortex/adapter.rb
key-vortex-0.2.0 lib/key_vortex/adapter.rb
key-vortex-0.1.4 lib/key_vortex/adapter.rb
key-vortex-0.1.3 lib/key_vortex/adapter.rb