Sha256: 98e6d2cfeadc162f85253e956df763e03e707642a00c73ec6297184dd28e0426
Contents?: true
Size: 537 Bytes
Versions: 14
Compression:
Stored size: 537 Bytes
Contents
module HaveAPI::GoClient module Authentication; end module AuthenticationMethods # @param name [Symbol] # @param klass [Class] def self.register(name, klass) @methods ||= {} @methods[name] = klass end # @param name [String] def self.get(name) @methods[name.to_sym] end # @param api_version [ApiVersion] # @param name [String] def self.new(api_version, name, *) klass = get(name) || Authentication::Unsupported klass.new(api_version, name, *) end end end
Version data entries
14 entries across 14 versions & 1 rubygems