class BuntoImport::Importer
Public Class Methods
inherited(base)
click to toggle source
# File lib/bunto-import/importer.rb, line 3 def self.inherited(base) subclasses << base end
run(options = {})
click to toggle source
# File lib/bunto-import/importer.rb, line 19 def self.run(options = {}) opts = stringify_keys(options) self.require_deps self.validate(opts) if self.respond_to?(:validate) self.process(opts) end
stringify_keys(hash)
click to toggle source
# File lib/bunto-import/importer.rb, line 11 def self.stringify_keys(hash) the_hash = hash.clone the_hash.keys.each do |key| the_hash[(key.to_s rescue key) || key] = the_hash.delete(key) end the_hash end
subclasses()
click to toggle source
# File lib/bunto-import/importer.rb, line 7 def self.subclasses @subclasses ||= [] end