Sha256: 969bd67aa51e2e0a7d08755a5825759b8522dee44ac3551d4ad15bbc8e290217
Contents?: true
Size: 486 Bytes
Versions: 3
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/address_multi_street.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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
happymapper-0.3.1 | examples/multi_street_address.rb |
legolin-happymapper-0.3.0 | examples/multi_street_address.rb |
happymapper-0.3.0 | examples/multi_street_address.rb |