Class: SnFoil::Adapters::ORMs::BaseAdapter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- SnFoil::Adapters::ORMs::BaseAdapter
- Defined in:
- lib/snfoil/adapters/orms/base_adapter.rb
Direct Known Subclasses
Instance Method Summary collapse
- #all ⇒ Object
- #attributes=(_attributes) ⇒ Object
- #destroy ⇒ Object
- #is_a?(check_class) ⇒ Boolean
- #klass ⇒ Object
- #new(**_params) ⇒ Object
- #save ⇒ Object
Instance Method Details
#all ⇒ Object
27 28 29 |
# File 'lib/snfoil/adapters/orms/base_adapter.rb', line 27 def all raise NotImplementedError, '#all not implemented in adapter' end |
#attributes=(_attributes) ⇒ Object
39 40 41 |
# File 'lib/snfoil/adapters/orms/base_adapter.rb', line 39 def attributes=(_attributes) raise NotImplementedError, '#attributes= not implemented in adapter' end |
#destroy ⇒ Object
35 36 37 |
# File 'lib/snfoil/adapters/orms/base_adapter.rb', line 35 def destroy raise NotImplementedError, '#destroy not implemented in adapter' end |
#is_a?(check_class) ⇒ Boolean
43 44 45 |
# File 'lib/snfoil/adapters/orms/base_adapter.rb', line 43 def is_a?(check_class) __getobj__.class.object_id.equal?(check_class.object_id) end |
#klass ⇒ Object
47 48 49 |
# File 'lib/snfoil/adapters/orms/base_adapter.rb', line 47 def klass __getobj__.class end |
#new(**_params) ⇒ Object
23 24 25 |
# File 'lib/snfoil/adapters/orms/base_adapter.rb', line 23 def new(**_params) raise NotImplementedError, '#new not implemented in adapter' end |
#save ⇒ Object
31 32 33 |
# File 'lib/snfoil/adapters/orms/base_adapter.rb', line 31 def save raise NotImplementedError, '#save not implemented in adapter' end |