Sha256: 13589964267bd94491debdb47426c0fa76f6023dfc8195291243587e12f4f3bc
Contents?: true
Size: 793 Bytes
Versions: 37
Compression:
Stored size: 793 Bytes
Contents
module Xeroizer module Record class AddressModel < BaseModel end class Address < Base ADDRESS_TYPE = { 'STREET' => 'Street', 'POBOX' => 'PO Box', 'DEFAULT' => 'Default address type' } unless defined?(ADDRESS_TYPE) string :address_type, :internal_name => :type string :attention_to string :address_line1, :internal_name => :line1 string :address_line2, :internal_name => :line2 string :address_line3, :internal_name => :line3 string :address_line4, :internal_name => :line4 string :city string :region string :postal_code string :country validates_inclusion_of :type, :in => ADDRESS_TYPE.keys end end end
Version data entries
37 entries across 37 versions & 2 rubygems