Class: Zt::Importers::BaseImporter

Inherits:
Object
  • Object
show all
Defined in:
lib/zt/importers/_base_importer.rb

Direct Known Subclasses

NetworkImporter, NodeImporter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(networks, nodes) ⇒ BaseImporter

Returns a new instance of BaseImporter.



10
11
12
13
# File 'lib/zt/importers/_base_importer.rb', line 10

def initialize(networks, nodes)
  @networks = networks
  @nodes = nodes
end

Instance Attribute Details

#networksObject

Returns the value of attribute networks.



8
9
10
# File 'lib/zt/importers/_base_importer.rb', line 8

def networks
  @networks
end

#nodesObject

Returns the value of attribute nodes.



9
10
11
# File 'lib/zt/importers/_base_importer.rb', line 9

def nodes
  @nodes
end

Instance Method Details

#importObject



15
16
17
# File 'lib/zt/importers/_base_importer.rb', line 15

def import
  abort('import called on non-functional superclass importer')
end