Sha256: 3c513e498430b30be959a64c0ba1172d763deb76e4dcbcf723440677ffed0a27

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

module Ieee
  module Idams
    # Multimedia compressed
    class MultimediaCompressed < Lutaml::Model::Serializable
      #   <compressed>
      #     <compressedfilename>IEEE1584-2002_AncillaryFiles.zip</compressedfilename>
      #     <compressedfilesize>180</compressedfilesize>
      #     <compressiontype>ZIP</compressiontype>
      #     <environmenttype>Windows</environmenttype>
      #     <readmefile>IEEE1584-2002_AncillaryFiles.readme.txt</readmefile>
      #   </compressed>

      attribute :filename, :string
      attribute :filesize, :string
      attribute :compression_type, :string
      attribute :environment_type, :string
      attribute :readme_file, :string

      xml do
        root "compressed"

        map_element "compressedfilename", to: :filename
        map_element "compressedfilesize", to: :filesize
        map_element "compressiontype", to: :compression_type
        map_element "environmenttype", to: :environment_type
        map_element "readmefile", to: :readme_file
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ieee-idams-0.2.9 lib/ieee/idams/multimedia_compressed.rb
ieee-idams-0.2.8 lib/ieee/idams/multimedia_compressed.rb
ieee-idams-0.2.7 lib/ieee/idams/multimedia_compressed.rb
ieee-idams-0.2.6 lib/ieee/idams/multimedia_compressed.rb