Sha256: 4c9405655df8187caf56893dd5c4e6848685e7bc0ee6f08b2e3ff9dde668f799

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 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

    def self.symbol
      name.downcase
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
key-vortex-0.2.3 lib/key_vortex/adapter.rb