Class: Jetel::Loaders::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/jetel/loaders/loader.rb

Direct Known Subclasses

Couchbase, Elasticsearch, Pg

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Loader

Returns a new instance of Loader.



27
28
29
# File 'lib/jetel/loaders/loader.rb', line 27

def initialize(uri)
  @uri = uri
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



26
27
28
# File 'lib/jetel/loaders/loader.rb', line 26

def uri
  @uri
end

Instance Method Details

#load(modul, source, file, opts) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/jetel/loaders/loader.rb', line 31

def load(modul, source, file, opts)
  {
    :file => file,
    :module => modul,
    :source => source
  }
end