jwt/ruby-jwe

View on GitHub
lib/jwe/zip.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'jwe/zip/def'

module JWE
  # Message deflating algorithms namespace
  module Zip
    def self.for(zip)
      const_get(JWE.param_to_class_name(zip))
    rescue NameError
      raise NotImplementedError.new("Unsupported zip type: #{zip}")
    end
  end
end