lib/mongo/crypt/status.rb
# Set a label, code, and message on the Status
#
# @param [ Symbol ] label One of :ok, :error_client, or :error_kms
# @param [ Integer ] code
# @param [ String ] message
#
# @return [ Mongo::Crypt::Status ] returns self
Set a label, code, and message on the Status
Set a label code and message on the Status
def update(label, code, message)
        unless [:ok, :error_client, :error_kms].include?(label)
          raise ArgumentError.new(
            "#{label} is an invalid value for a Mongo::Crypt::Status label. " +
            "Label must have one of the following values: :ok, :error_client, :error_kms"
          )
        end
        message_length = message ? message.length + 1 : 0
        Binding.mongocrypt_status_set(@status, label, code, message, message_length)
        self
      end
def update ( label , code , message ) unless [ :ok , :error_client , :error_kms ] . include? ( label ) raise ArgumentError . new ( "#{label} is an invalid value for a Mongo::Crypt::Status label. " + "Label must have one of the following values: :ok, :error_client, :error_kms" ) end message_length = message ? message . length + 1 : 0 Binding . mongocrypt_status_set ( @status , label , code , message , message_length ) self end
Set a label, code, and message on the Status
Set a label code and message on the Status
None
 Mongo::Crypt::Status 
label
code
message
None