Class: Omnidata::Adapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/omnidata/adapters/abstract_adapter.rb

Direct Known Subclasses

MongodbAdapter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ AbstractAdapter

Returns a new instance of AbstractAdapter.



18
19
20
# File 'lib/omnidata/adapters/abstract_adapter.rb', line 18

def initialize(options)
  @config = options.dup
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



16
17
18
# File 'lib/omnidata/adapters/abstract_adapter.rb', line 16

def config
  @config
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/omnidata/adapters/abstract_adapter.rb', line 15

def name
  @name
end