Module: CouchbaseOrm::ActiveRecordCompat::ClassMethods

Defined in:
lib/couchbase-orm/base.rb

Instance Method Summary collapse

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

Returns:



53
54
55
# File 'lib/couchbase-orm/base.rb', line 53

def abstract_class?
  false
end

#attribute_namesObject



74
75
76
# File 'lib/couchbase-orm/base.rb', line 74

def attribute_names
  attribute_types.keys
end

#base_class?Boolean

Returns:



44
45
46
# File 'lib/couchbase-orm/base.rb', line 44

def base_class?
  true
end

#column_namesObject

can't be an alias for now



49
50
51
# File 'lib/couchbase-orm/base.rb', line 49

def column_names
  attribute_names
end

#connected?Boolean

Returns:



57
58
59
# File 'lib/couchbase-orm/base.rb', line 57

def connected?
  true
end

#primary_keyObject



40
41
42
# File 'lib/couchbase-orm/base.rb', line 40

def primary_key
  'id'
end

#table_exists?Boolean

Returns:



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