Sha256: 4127d2a8c2e53f3aac6cca6211daf08dc6f12215603e14f8e5eb6ebc151bb645

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

module Einvoice
  module Neweb
    module Model
      class Contact < Base
        VALID_OPTIONS_KEYS = [
          :name,
          :address,
          :t_e_l,
          :email
        ].freeze

        attr_accessor *VALID_OPTIONS_KEYS

        validates :name, presence: true, length: { maximum: 64 }
        validates :address, presence: true, length: { maximum: 128 }
        validates :t_e_l, length: { maximum: 64 }
        validates :email, length: { maximum: 512 }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
einvoice-1.1.1 lib/einvoice/neweb/model/contact.rb
einvoice-1.1.0 lib/einvoice/neweb/model/contact.rb
einvoice-1.0.0 lib/einvoice/neweb/model/contact.rb
einvoice-0.2.8 lib/einvoice/neweb/model/contact.rb
einvoice-0.2.0 lib/einvoice/neweb/model/contact.rb