Sha256: 969b9e2a4c14fc2102134791a90c27c5ad2824708995ed9757404c716f1e9764

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

module Vedeu
  class UndefinedInterface < StandardError; end

  class InterfaceRepository
    extend Repository

    class << self
      def find(name)
        result = super
        raise UndefinedInterface unless result
        result
      end

      def refresh
        all.map { |interface| interface.refresh }.compact
      end

      def entity
        Interface
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.0.21 lib/vedeu/repository/interface_repository.rb