Sha256: bc47245d453ab09548b7cd4e427746bce64f6756a7985b73015746fdd956d437

Contents?: true

Size: 403 Bytes

Versions: 20

Compression:

Stored size: 403 Bytes

Contents

module Ddr::Models::Structures
  #
  # Wraps a Nokogiri (XML) 'fileSec' node
  #
  class FileSec < SimpleDelegator

    def id
      self['ID']
    end

    def filegrps
      xpath('xmlns:fileGrp').map { |node| FileGrp.new(node) }
    end

    def self.build(args)
      node = Nokogiri::XML::Node.new('fileSec', args[:document])
      node['ID'] = args[:id] if args[:id]
      node
    end

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ddr-models-2.11.0 lib/ddr/models/structures/file_sec.rb
ddr-models-2.10.2 lib/ddr/models/structures/file_sec.rb
ddr-models-2.10.1 lib/ddr/models/structures/file_sec.rb
ddr-models-2.10.0 lib/ddr/models/structures/file_sec.rb
ddr-models-2.10.0.rc2 lib/ddr/models/structures/file_sec.rb
ddr-models-2.10.0.rc1 lib/ddr/models/structures/file_sec.rb
ddr-models-2.9.2 lib/ddr/models/structures/file_sec.rb
ddr-models-2.9.1 lib/ddr/models/structures/file_sec.rb
ddr-models-2.9.0 lib/ddr/models/structures/file_sec.rb
ddr-models-2.9.0.rc1 lib/ddr/models/structures/file_sec.rb
ddr-models-2.8.0 lib/ddr/models/structures/file_sec.rb
ddr-models-2.8.0.rc1 lib/ddr/models/structures/file_sec.rb
ddr-models-2.7.6 lib/ddr/models/structures/file_sec.rb
ddr-models-2.7.5 lib/ddr/models/structures/file_sec.rb
ddr-models-2.7.4 lib/ddr/models/structures/file_sec.rb
ddr-models-2.7.3 lib/ddr/models/structures/file_sec.rb
ddr-models-2.7.2 lib/ddr/models/structures/file_sec.rb
ddr-models-2.7.1 lib/ddr/models/structures/file_sec.rb
ddr-models-2.7.0 lib/ddr/models/structures/file_sec.rb
ddr-models-2.7.0.rc1 lib/ddr/models/structures/file_sec.rb