Sha256: 7520ac4bfb053555cadd4d3faa08d305ede48c1ffa7e58b34e9e490031568360

Contents?: true

Size: 308 Bytes

Versions: 13

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module Libvirt
  module Xml
    class Memory < Generic
      attribute :dump_core, type: :attr, name: :dumpCore
      attribute :slots, type: :attr

      attribute :bytes, apply: ->(node, _opts) do
        Util.parse_memory node.text, node['unit']
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
libvirt_ffi-0.8.1 lib/libvirt/xml/memory.rb
libvirt_ffi-0.8.0 lib/libvirt/xml/memory.rb
libvirt_ffi-0.7.0 lib/libvirt/xml/memory.rb
libvirt_ffi-0.6.2 lib/libvirt/xml/memory.rb
libvirt_ffi-0.6.1 lib/libvirt/xml/memory.rb
libvirt_ffi-0.6.0 lib/libvirt/xml/memory.rb
libvirt_ffi-0.5.6 lib/libvirt/xml/memory.rb
libvirt_ffi-0.5.5 lib/libvirt/xml/memory.rb
libvirt_ffi-0.5.4 lib/libvirt/xml/memory.rb
libvirt_ffi-0.5.3 lib/libvirt/xml/memory.rb
libvirt_ffi-0.5.2 lib/libvirt/xml/memory.rb
libvirt_ffi-0.5.1 lib/libvirt/xml/memory.rb
libvirt_ffi-0.5.0 lib/libvirt/xml/memory.rb