Sha256: 52a866228a9d0f3f81cf15b119f6e131f94979bc21228abb4bd66dd4a4ef07d8

Contents?: true

Size: 924 Bytes

Versions: 6

Compression:

Stored size: 924 Bytes

Contents

# frozen_string_literal: true

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

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

      # State
      # @return [String] state name
      attribute :state, :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 "state", to: :state, 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/affiliation_address.rb
ieee-idams-0.2.10 lib/ieee/idams/affiliation_address.rb
ieee-idams-0.2.9 lib/ieee/idams/affiliation_address.rb
ieee-idams-0.2.8 lib/ieee/idams/affiliation_address.rb
ieee-idams-0.2.7 lib/ieee/idams/affiliation_address.rb
ieee-idams-0.2.6 lib/ieee/idams/affiliation_address.rb