Class: DataMapper::Adapters::AbstractAdapter
- Extended by:
- Migration::ClassMethods
- Includes:
- Migration, Transaction, DataMapper::Assertions
- Defined in:
- lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Migration, Transaction
Instance Attribute Summary collapse
-
#field_naming_convention ⇒ Object
Returns the value of attribute field_naming_convention.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#resource_naming_convention ⇒ Object
Returns the value of attribute resource_naming_convention.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #create(resources) ⇒ Object
- #delete(query) ⇒ Object
- #read_many(query) ⇒ Object
- #read_one(query) ⇒ Object
- #update(attributes, query) ⇒ Object
Methods included from Migration::ClassMethods
Methods included from Transaction
#current_transaction, #pop_transaction, #push_transaction, #transaction_primitive, #within_transaction?
Methods included from Migration
#alter_model_storage, #alter_property_storage, #create_model_storage, #create_property_storage, #destroy_model_storage, #destroy_property_storage, #field_exists?, #storage_exists?, #upgrade_model_storage
Methods included from DataMapper::Assertions
Instance Attribute Details
#field_naming_convention ⇒ Object
Returns the value of attribute field_naming_convention.
7 8 9 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 7 def field_naming_convention @field_naming_convention end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 6 def name @name end |
#resource_naming_convention ⇒ Object
Returns the value of attribute resource_naming_convention.
7 8 9 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 7 def resource_naming_convention @resource_naming_convention end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 6 def uri @uri end |
Instance Method Details
#create(resources) ⇒ Object
9 10 11 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 9 def create(resources) raise NotImplementedError end |
#delete(query) ⇒ Object
25 26 27 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 25 def delete(query) raise NotImplementedError end |
#read_many(query) ⇒ Object
13 14 15 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 13 def read_many(query) raise NotImplementedError end |
#read_one(query) ⇒ Object
17 18 19 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 17 def read_one(query) raise NotImplementedError end |
#update(attributes, query) ⇒ Object
21 22 23 |
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/adapters/abstract_adapter.rb', line 21 def update(attributes, query) raise NotImplementedError end |