Sha256: c7c27c7936c83be672ce05575abf6578c88ef97749ded2cc22a759b50f1881d1
Contents?: true
Size: 803 Bytes
Versions: 2
Compression:
Stored size: 803 Bytes
Contents
module Einvoice module Neweb module Model class InvoiceItem < Base VALID_OPTIONS_KEYS = [ :description, :quantity, :unit, :unit_price, :amount, :sequence_number, :remark ].freeze attr_accessor *VALID_OPTIONS_KEYS validates :description, presence: true, length: { maximum: 256 } validates :quantity, presence: true, length: { maximum: 17 } validates :unit, length: { maximum: 6 } validates :unit_price, presence: true, length: { maximum: 17 } validates :amount, presence: true, length: { maximum: 17 } validates :sequence_number, presence: true, length: { maximum: 3 } validates :remark, length: { maximum: 40 } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
einvoice-0.2.8 | lib/einvoice/neweb/model/invoice_item.rb |
einvoice-0.2.0 | lib/einvoice/neweb/model/invoice_item.rb |