Exception: BrInvoicesPdf::Errors::InvalidDocumentType
- Inherits:
-
StandardError
- Object
- StandardError
- BrInvoicesPdf::Errors::InvalidDocumentType
- Defined in:
- lib/br_invoices_pdf/errors/invalid_document_type.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ InvalidDocumentType
constructor
A new instance of InvalidDocumentType.
Constructor Details
#initialize(type) ⇒ InvalidDocumentType
Returns a new instance of InvalidDocumentType.
8 9 10 11 |
# File 'lib/br_invoices_pdf/errors/invalid_document_type.rb', line 8 def initialize(type) super("`#{type.inspect}` is not supported. Must be one of #{BrInvoicesPdf.supported_document_types}") @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/br_invoices_pdf/errors/invalid_document_type.rb', line 6 def type @type end |