Class: Planet::Importer

Inherits:
Object
  • Object
show all
Defined in:
lib/planet/importer.rb

Class Method Summary collapse

Class Method Details

.import(config) {|planet| ... } ⇒ Object

Yields:

  • (planet)


3
4
5
6
7
8
# File 'lib/planet/importer.rb', line 3

def self.import(config)
  planet = Planet.new(config)
  planet.aggregate

  yield(planet)
end