Module: Mongo::Crypt::KMS
Class Method Summary
-
.provider_base_type(identifier) ⇒ String
Internal use only
Returns the base provider type from a
KMSprovider identifier.
Class Method Details
.provider_base_type(identifier) ⇒ String
Returns the base provider type from a KMS provider identifier.
For example, "aws:name1" returns "aws" and :aws returns "aws".
# File 'lib/mongo/crypt/kms.rb', line 33
def self.provider_base_type(identifier) identifier.to_s.split(':').first end