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

Version Path
xeroizer-float-2.15.3.8 lib/xeroizer/models/address.rb
xeroizer-float-2.15.3.7 lib/xeroizer/models/address.rb
xeroizer-float-2.15.3.6 lib/xeroizer/models/address.rb
xeroizer-float-2.15.3.5 lib/xeroizer/models/address.rb
xeroizer-float-2.15.3.4 lib/xeroizer/models/address.rb
xeroizer-float-2.15.3.3 lib/xeroizer/models/address.rb
xeroizer-float-2.15.3.2 lib/xeroizer/models/address.rb
xeroizer-float-2.15.3.1 lib/xeroizer/models/address.rb
xeroizer-2.15.3 lib/xeroizer/models/address.rb
xeroizer-2.15.2 lib/xeroizer/models/address.rb
xeroizer-2.15.1 lib/xeroizer/models/address.rb
xeroizer-2.15.0 lib/xeroizer/models/address.rb
xeroizer-0.5.2 lib/xeroizer/models/address.rb
xeroizer-0.5.1 lib/xeroizer/models/address.rb
xeroizer-0.5.0 lib/xeroizer/models/address.rb
xeroizer-0.4.4 lib/xeroizer/models/address.rb
xeroizer-0.4.3 lib/xeroizer/models/address.rb