Sha256: e96c628e3d31ea18905dff766292fe5645a4fabda83afb0dbfc71be88ea9b3a9

Contents?: true

Size: 786 Bytes

Versions: 6

Compression:

Stored size: 786 Bytes

Contents

# frozen_string_literal: true

module Ieee
  module Idams
    # Represents a physical address
    class Address < Lutaml::Model::Serializable
      # Street address
      # @return [String] street address line
      attribute :street, :string

      # City
      # @return [String] city name
      attribute :city, :string

      # Country
      # @return [String] country name
      attribute :country, :string

      # Post code
      # @return [String] postal code
      attribute :postcode, :string

      xml do
        root "address"
        map_element "street", to: :street # , cdata: true
        map_element "city", to: :city # , cdata: true
        map_element "country", to: :country # , cdata: true
        map_element "postcode", to: :postcode
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ieee-idams-0.2.11 lib/ieee/idams/address.rb
ieee-idams-0.2.10 lib/ieee/idams/address.rb
ieee-idams-0.2.9 lib/ieee/idams/address.rb
ieee-idams-0.2.8 lib/ieee/idams/address.rb
ieee-idams-0.2.7 lib/ieee/idams/address.rb
ieee-idams-0.2.6 lib/ieee/idams/address.rb