Module: CassandraIntegration::Base
- Defined in:
- lib/cassandra_integration/base.rb
Defined Under Namespace
Modules: InstanceMethods
Instance Attribute Summary collapse
-
#cassandra_column_family ⇒ Object
Returns the value of attribute cassandra_column_family.
-
#cassandra_columns_values_hash ⇒ Object
Returns the value of attribute cassandra_columns_values_hash.
Class Method Summary collapse
Instance Attribute Details
#cassandra_column_family ⇒ Object
Returns the value of attribute cassandra_column_family.
3 4 5 |
# File 'lib/cassandra_integration/base.rb', line 3 def cassandra_column_family @cassandra_column_family end |
#cassandra_columns_values_hash ⇒ Object
Returns the value of attribute cassandra_columns_values_hash.
3 4 5 |
# File 'lib/cassandra_integration/base.rb', line 3 def cassandra_columns_values_hash @cassandra_columns_values_hash end |
Class Method Details
.extended(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cassandra_integration/base.rb', line 5 def self.extended(base) base.after_save :replicate base.before_validation :set_cassandra_sync_identifier CassandraIntegration::Config.extended_models=base.name base.class_eval do include InstanceMethods end end |