Sha256: 90df64f48d4be9c7febf86d637449fba3f7f353b7dfcdb4743aa137aabf9a21b
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'happymapper') file_contents = File.read(dir + '/../spec/fixtures/multi_street_address.xml') class MultiStreetAddress include HappyMapper # allow primitive type to be collection has_many :street_address, String, :tag => "streetaddress" element :city, String element :state_or_providence, String, :tag => "stateOfProvidence" element :zip, String element :country, String end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
happymapper-0.3.2 | examples/multi_street_address.rb |