Sha256: 1e970be0bbebbb3c4151adc4ac245b4ffb5dfa0bf8490daef895834fa9faac41
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
module EInvoiceQREncryptor class ErrorMessage # :nodoc: def self.generate(params) case params[:msg] when :field_should_be "The #{params[:field]} should be #{params[:data]}" when :fixed_length "The length for #{params[:field]} should be #{params[:length]}" when :cannot_be_empty "The #{params[:field]} cannot be empty" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
einvoice-qr-encryptor-0.2.0 | lib/einvoice-qr-encryptor/error_message.rb |
einvoice-qr-encryptor-0.1.0 | lib/einvoice-qr-encryptor/error_message.rb |