Class: CassandraObject::BaseSchemaless

Inherits:
Base
  • Object
show all
Defined in:
lib/cassandra_object/base_schemaless.rb

Class Method Summary collapse

Methods inherited from Base

timestamps

Methods included from Model

#_key, #_keys, #allow_filtering, #allow_filtering=, #base_class, #column_family, #column_family=, #config, #config=, #keys, #keys=

Methods included from Core

#==, #eql?, #get_cql_response, #hash, #initialize, #initialize_dup, #to_param

Methods included from Callbacks

#destroy

Methods included from BelongsTo

#belongs_to_association

Methods included from AttributeMethods::PrimaryKey

#attributes, #id, #id=

Methods included from AttributeMethods::Dirty

#reload, #save, #write_attribute

Methods included from Validations

#save, #save!

Methods included from AttributeMethods

#attribute_exists?, #attributes, #attributes=, #method_missing, #read_attribute, #respond_to?, #write_attribute

Methods included from Persistence

#becomes, #destroy, #destroyed?, #new_record?, #persisted?, #reload, #save, #update_attribute, #update_attributes, #update_attributes!

Methods included from Inspect

#attribute_for_inspect, #inspect

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CassandraObject::AttributeMethods

Class Method Details

.adapterObject



3
4
5
# File 'lib/cassandra_object/base_schemaless.rb', line 3

def self.adapter
  @adapter ||= CassandraObject::Adapters::CassandraSchemalessAdapter.new(self.config)
end

.schema_typeObject



7
8
9
# File 'lib/cassandra_object/base_schemaless.rb', line 7

def self.schema_type
  :schemaless
end