Sha256: 19332284df819c37652d53c1fad04344413096a0bed5272724ec59f92ae208ca

Contents?: true

Size: 925 Bytes

Versions: 13

Compression:

Stored size: 925 Bytes

Contents

# This module is based on the UML,
# http://www.openehr.org/uml/release-1.0.1/Browsable/_9_5_1_76d0249_1140536622627_218703_7149Report.html
# Ticket refs #63
require_relative 'archetyped'
require_relative 'change_control'

module OpenEHR
  module RM
    module Common
      module Directory
        class Folder < OpenEHR::RM::Common::Archetyped::Locatable
          attr_accessor :items
          attr_reader :folders

          def initialize(args = { })
            super(args)
            self.folders = args[:folders]
            self.items = args[:items]
          end

          def folders=(folders)
            raise ArgumentError, "empty subfolder" if !folders.nil? and folders.empty?
            @folders = folders
          end
        end

        class VersionedFolder < OpenEHR::RM::Common::ChangeControl::VersionedObject
        end
      end # of Directory
    end # of Common
  end # of RM
end # of OpenEHR

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
openehr-1.2.999999 lib/openehr/rm/common/directory.rb
openehr-1.2.99999 lib/openehr/rm/common/directory.rb
openehr-1.2.9999 lib/openehr/rm/common/directory.rb
openehr-1.2.999 lib/openehr/rm/common/directory.rb
openehr-1.2.99 lib/openehr/rm/common/directory.rb
openehr-1.2.16 lib/openehr/rm/common/directory.rb
openehr-1.2.15 lib/openehr/rm/common/directory.rb
openehr-1.2.14 lib/openehr/rm/common/directory.rb
openehr-1.2.13 lib/openehr/rm/common/directory.rb
openehr-1.2.12 lib/openehr/rm/common/directory.rb
openehr-1.2.11 lib/openehr/rm/common/directory.rb
openehr-1.2.10 lib/openehr/rm/common/directory.rb
openehr-1.2.9 lib/openehr/rm/common/directory.rb