Class: EInvoiceQREncryptor::ErrorMessage
- Inherits:
-
Object
- Object
- EInvoiceQREncryptor::ErrorMessage
- Defined in:
- lib/einvoice-qr-encryptor/error_message.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.generate(params) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/einvoice-qr-encryptor/error_message.rb', line 3 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 |