Class: Avm::Instances::Data::Package

Inherits:
Data::Package show all
Defined in:
lib/avm/instances/data/package.rb

Constant Summary

Constants inherited from Data::Package

Data::Package::DATA_FILE_EXTENSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Data::Package

#add_unit, #data_file_extension, #dump_units_to_directory, #load_units_from_directory, #unit, #units, #units_ids

Constructor Details

#initialize(instance, options = {}) ⇒ Package

Returns a new instance of Package.



11
12
13
14
# File 'lib/avm/instances/data/package.rb', line 11

def initialize(instance, options = {})
  @instance = instance
  super(options)
end

Instance Attribute Details

#instanceObject (readonly)

Returns the value of attribute instance.



9
10
11
# File 'lib/avm/instances/data/package.rb', line 9

def instance
  @instance
end

Instance Method Details

#data_default_dump_pathPathname

Returns:

  • (Pathname)


17
18
19
# File 'lib/avm/instances/data/package.rb', line 17

def data_default_dump_path
  instance.data_default_dump_path.to_pathname
end

#loadObject



21
22
23
# File 'lib/avm/instances/data/package.rb', line 21

def load(...)
  instance.on_disabled_processes { super }
end