Sha256: 6f48bee97fde92a212232008912d0fabf3834960565d538a91b8929671193746

Contents?: true

Size: 723 Bytes

Versions: 6

Compression:

Stored size: 723 Bytes

Contents

# frozen_string_literal: true

require_relative "address"

module Ieee
  module Idams
    # Represents a publisher
    class Publisher < Lutaml::Model::Serializable
      # Publisher name
      # @return [String] name of publishing organization
      attribute :publishername, :string

      # Publisher location
      # @return [String] publishing location
      attribute :publisherloc, :string

      # Address details
      # @return [Address] publisher's address
      attribute :address, Address

      xml do
        root "publisher"
        map_element "publishername", to: :publishername
        map_element "publisherloc", to: :publisherloc
        map_element "address", to: :address
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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