Class: Msewage::Importer::Importers::JSON

Inherits:
Base
  • Object
show all
Defined in:
lib/msewage-importer/importers/json.rb

Instance Method Summary collapse

Methods inherited from Base

factory, importers, #initialize, load_importers, type

Constructor Details

This class inherits a constructor from Msewage::Importer::Importers::Base

Instance Method Details

#importObject



8
9
10
# File 'lib/msewage-importer/importers/json.rb', line 8

def import
  ::JSON.parse(File.read(file_name))["sources"]
end