Class: Oxidized::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/oxidized/source/source.rb

Direct Known Subclasses

CSV, HTTP, SQL

Defined Under Namespace

Classes: NoConfig

Instance Method Summary collapse

Constructor Details

#initializeSource

Returns a new instance of Source.



4
5
6
# File 'lib/oxidized/source/source.rb', line 4

def initialize
  @map = (CFG.model_map or {})
end

Instance Method Details

#map_model(model) ⇒ Object



7
8
9
# File 'lib/oxidized/source/source.rb', line 7

def map_model model
  @map.has_key?(model) ? @map[model] : model
end