Sha256: 6a2eac18119eff6a994029fabbe6feaee1a2c22e3290188a774a54eaf442d93c

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

module Nordea
  module FileTransfer
    class UserFileType
      include Virtus

      attribute :target_id, String
      attribute :file_type, String
      attribute :file_type_name, String
      attribute :country, String
      attribute :description, String
      attribute :direction, String
      attribute :file_type_services, Array[FileTypeService], :default => []

      def initialize(attributes = {})
        if attributes[:file_type_services]
          attributes[:file_type_services] = Array.wrap(attributes[:file_type_services][:file_type_service])
        end
        super(attributes)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nordea-filetransfer-0.2.1 lib/nordea/file_transfer/user_file_type.rb