Sha256: 61574822224dfc86f17798e4ec2164502f16a819901fc8696b324a18bbd19df2
Contents?: true
Size: 456 Bytes
Versions: 3
Compression:
Stored size: 456 Bytes
Contents
module Einvoice module Neweb module Model class PreInvoice < Invoice TYPE_SPECIFIC_KEYS = [:data_number, :data_date] attr_accessor *TYPE_SPECIFIC_KEYS validates :data_number, presence: true, length: { maximum: 20 } validates :data_date, presence: true, length: { maximum: 10 }, format: { with: /\A\d{4}\/\d{2}\/\d{2}\Z/ } def initialize # overwritten end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
einvoice-1.1.1 | lib/einvoice/neweb/model/pre_invoice.rb |
einvoice-1.1.0 | lib/einvoice/neweb/model/pre_invoice.rb |
einvoice-1.0.0 | lib/einvoice/neweb/model/pre_invoice.rb |