Sha256: e97e01b967dce705ed8193ad6ece545b488a8c14c93b116b1c760ac8be9095e5

Contents?: true

Size: 630 Bytes

Versions: 12

Compression:

Stored size: 630 Bytes

Contents

module Xeroizer
  module Record
    
    class PhoneModel < BaseModel
            
    end
    
    class Phone < Base
      
      PHONE_TYPE = {
        'DEFAULT' =>    'Default',
        'DDI' =>        'Direct Dial-In',
        'MOBILE' =>     'Mobile',
        'FAX' =>        'Fax'
      } unless defined?(PHONE_TYPE)

      string :phone_type, :internal_name => :type
      string :phone_number, :internal_name => :number
      string :phone_area_code, :internal_name => :area_code
      string :phone_country_code, :internal_name => :country_code

      validates_length_of :phone_number, :max => 50
    end
    
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
xeroizer-3.0.1 lib/xeroizer/models/phone.rb
xeroizer-3.0.0 lib/xeroizer/models/phone.rb
xeroizer-3-pre-beta-3.0.0.pre.beta lib/xeroizer/models/phone.rb
xeroizer-2.20.0 lib/xeroizer/models/phone.rb
xeroizer-2.19.0 lib/xeroizer/models/phone.rb
xeroizer-2.18.1 lib/xeroizer/models/phone.rb
xeroizer-2.17.1 lib/xeroizer/models/phone.rb
xeroizer-2.16.5 lib/xeroizer/models/phone.rb
xeroizer-2.16.4 lib/xeroizer/models/phone.rb
xeroizer-2.16.3 lib/xeroizer/models/phone.rb
xeroizer-2.16.1 lib/xeroizer/models/phone.rb
xeroizer-2.16.0 lib/xeroizer/models/phone.rb