Sha256: 006a7a525a2d9655d6d649802ceebee8ef72899f56898d4f8d36585de90b7269

Contents?: true

Size: 395 Bytes

Versions: 33

Compression:

Stored size: 395 Bytes

Contents

module Ddr::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

33 entries across 33 versions & 1 rubygems

Version Path
ddr-core-1.11.0 lib/ddr/structures/file_sec.rb
ddr-core-1.10.0 lib/ddr/structures/file_sec.rb
ddr-core-1.9.0 lib/ddr/structures/file_sec.rb
ddr-core-1.8.0 lib/ddr/structures/file_sec.rb
ddr-core-1.7.0 lib/ddr/structures/file_sec.rb
ddr-core-1.6.6 lib/ddr/structures/file_sec.rb
ddr-core-1.6.5 lib/ddr/structures/file_sec.rb
ddr-core-1.6.4 lib/ddr/structures/file_sec.rb
ddr-core-1.6.3 lib/ddr/structures/file_sec.rb
ddr-core-1.6.2 lib/ddr/structures/file_sec.rb
ddr-core-1.6.1 lib/ddr/structures/file_sec.rb
ddr-core-1.6.0 lib/ddr/structures/file_sec.rb
ddr-core-1.5.5 lib/ddr/structures/file_sec.rb
ddr-core-1.5.4 lib/ddr/structures/file_sec.rb
ddr-core-1.5.2 lib/ddr/structures/file_sec.rb
ddr-core-1.5.3 lib/ddr/structures/file_sec.rb
ddr-core-1.5.1 lib/ddr/structures/file_sec.rb
ddr-core-1.4.4 lib/ddr/structures/file_sec.rb
ddr-core-1.4.3 lib/ddr/structures/file_sec.rb
ddr-core-1.4.2 lib/ddr/structures/file_sec.rb