diff --git a/lib/camt_parser/general/postal_address.rb b/lib/camt_parser/general/postal_address.rb index 4ac5be0..f54497a 100644 --- a/lib/camt_parser/general/postal_address.rb +++ b/lib/camt_parser/general/postal_address.rb @@ -7,14 +7,6 @@ def initialize(xml_data) @xml_data = xml_data end - # @return [Boolean] - def structured? - street_name != "" || - building_number != "" || - postal_code != "" || - town_name != "" - end - # @return [Array] def lines # May be empty xml_data.xpath('AdrLine').map do |x| diff --git a/spec/lib/camt_parser/general/postal_address_spec.rb b/spec/lib/camt_parser/general/postal_address_spec.rb index 399b79e..505f2c7 100644 --- a/spec/lib/camt_parser/general/postal_address_spec.rb +++ b/spec/lib/camt_parser/general/postal_address_spec.rb @@ -11,7 +11,6 @@ let(:address) { ex_transaction.postal_address } specify { expect(address.lines).to eq(["Berlin", "Infinite Loop 2", "12345"]) } - specify { expect(address.structured?).to eq(false) } specify { expect(address.xml_data).to_not be_nil } context "version 8" do @@ -20,7 +19,6 @@ specify { expect(address.lines).to eq(["Hochstrasse 5", "4052 Basel"]) } specify { expect(address.country).to eq("CH") } - specify { expect(address.structured?).to eq(false) } specify { expect(address.street_name).to eq("") } end @@ -32,7 +30,6 @@ let(:address) { entity.postal_address } specify { expect(entity.name).to eq("Rutschmann Pia") } - specify { expect(address.structured?).to eq(true) } specify { expect(address.street_name).to eq("Marktgasse") } specify { expect(address.building_number).to eq("28") } specify { expect(address.postal_code).to eq("9400") }