Sha256: 4b1c213712c6fb2aa2c721c6176b730d2c9653c206f5d556bd1ae88f46868dc3

Contents?: true

Size: 499 Bytes

Versions: 9

Compression:

Stored size: 499 Bytes

Contents

require "test/unit"
require "rubygems"
require "ruby-debug"
require File.dirname(__FILE__) + "/../lib/addresslogic"

class UKAddress
  attr_accessor :street1, :street2, :city, :zip, :country
  include Addresslogic
  apply_addresslogic :fields => [:street1, :street2, [:city, :zip], :country]
end

class AmericanAddress
  attr_accessor :street1, :street2, :city, :state, :zip, :country
  include Addresslogic
  apply_addresslogic :fields => [:street1, :street2, [:city, [:state, :zip]], :country]
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
binarylogic-addresslogic-1.1.2 test/test_helper.rb
binarylogic-addresslogic-1.1.3 test/test_helper.rb
binarylogic-addresslogic-1.2.0 test/test_helper.rb
binarylogic-addresslogic-1.2.1 test/test_helper.rb
addresslogic-1.2.1 test/test_helper.rb
addresslogic-1.1.3 test/test_helper.rb
addresslogic-1.2.0 test/test_helper.rb
addresslogic-1.1.1 test/test_helper.rb
addresslogic-1.1.2 test/test_helper.rb