Module: CouchbaseOrm::ActiveRecordCompat::ClassMethods
- Defined in:
- lib/couchbase-orm/base.rb
Instance Method Summary collapse
- #_reflect_on_association(_attribute) ⇒ Object
- #abstract_class? ⇒ Boolean
- #attribute_names ⇒ Object
- #base_class? ⇒ Boolean
-
#column_names ⇒ Object
can't be an alias for now.
- #connected? ⇒ Boolean
- #primary_key ⇒ Object
- #table_exists? ⇒ Boolean
- #type_for_attribute(attribute) ⇒ Object
Instance Method Details
#_reflect_on_association(_attribute) ⇒ Object
65 66 67 |
# File 'lib/couchbase-orm/base.rb', line 65 def _reflect_on_association(_attribute) false end |
#abstract_class? ⇒ Boolean
53 54 55 |
# File 'lib/couchbase-orm/base.rb', line 53 def abstract_class? false end |
#attribute_names ⇒ Object
74 75 76 |
# File 'lib/couchbase-orm/base.rb', line 74 def attribute_names attribute_types.keys end |
#base_class? ⇒ Boolean
44 45 46 |
# File 'lib/couchbase-orm/base.rb', line 44 def base_class? true end |
#column_names ⇒ Object
can't be an alias for now
49 50 51 |
# File 'lib/couchbase-orm/base.rb', line 49 def column_names attribute_names end |
#primary_key ⇒ Object
40 41 42 |
# File 'lib/couchbase-orm/base.rb', line 40 def primary_key 'id' end |
#table_exists? ⇒ Boolean
61 62 63 |
# File 'lib/couchbase-orm/base.rb', line 61 def table_exists? true end |
#type_for_attribute(attribute) ⇒ Object
69 70 71 |
# File 'lib/couchbase-orm/base.rb', line 69 def type_for_attribute(attribute) attribute_types[attribute] end |