Class: ActiveAny::AbstractAdapter
- Inherits:
-
Object
- Object
- ActiveAny::AbstractAdapter
- Defined in:
- lib/active_any/adapters/abstract_adapter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass) ⇒ AbstractAdapter
constructor
A new instance of AbstractAdapter.
- #query ⇒ Object
Constructor Details
#initialize(klass) ⇒ AbstractAdapter
Returns a new instance of AbstractAdapter.
7 8 9 |
# File 'lib/active_any/adapters/abstract_adapter.rb', line 7 def initialize(klass) @klass = klass end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
5 6 7 |
# File 'lib/active_any/adapters/abstract_adapter.rb', line 5 def klass @klass end |
Instance Method Details
#query ⇒ Object
17 18 19 |
# File 'lib/active_any/adapters/abstract_adapter.rb', line 17 def query(*) raise NotImplementedError.new, "#{self.class.name} can not handle for #{value.class}" end |